summary refs log tree commit diff
path: root/emacs.d/modes/lang-go.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/modes/lang-go.el (renamed from emacs.d/inits/90_lang-go.el)20
1 files changed, 11 insertions, 9 deletions
diff --git a/emacs.d/inits/90_lang-go.el b/emacs.d/modes/lang-go.el
index b20b467..8d81f2c 100644
--- a/emacs.d/inits/90_lang-go.el
+++ b/emacs.d/modes/lang-go.el
@@ -1,12 +1,3 @@
-(use-package go-eldoc
-  :ensure t
-  :defer t
-  :init (add-hook 'go-mode-hook 'go-eldoc-setup))
-
-(use-package company-go
-  :ensure t
-  :defer t)
-
 (use-package go-mode
   :ensure t
   :defer t
@@ -21,3 +12,14 @@
                                    (go-eldoc-setup)
                                    (add-hook 'before-save-hook 'gofmt-before-save)
                                    (set (make-local-variable 'company-backends) '(company-go))))))
+
+(use-package go-eldoc
+  :ensure t
+  :defer t
+  :init (add-hook 'go-mode-hook 'go-eldoc-setup))
+
+(use-package company-go
+  :ensure t
+  :defer t)
+
+(provide 'lang-go)