summary refs log tree commit diff
path: root/emacs.d/modes/lang-go.el
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-02-12 20:58:37 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-02-12 20:58:37 -0800
commit5f2b301a8df5410962519d2b7e9a977b03e75977 (patch)
treeda73920a1109c0820cdf3a3e2902087c95f3b3a7 /emacs.d/modes/lang-go.el
parent[emacs] Move some packages to a new config file. (diff)
downloademacs.d-5f2b301a8df5410962519d2b7e9a977b03e75977.tar.gz
[emacs] Split the config into 'core' and 'modes'.
Separate the modules that are 'core' (e.g.: related to editing,
manipulating text, and so on) and the 'modes' (e.g.: related to syntax,
langage support, etc).
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)