summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
authorAlan Pearce2014-05-15 19:49:40 +0100
committerAlan Pearce2014-05-15 19:49:40 +0100
commita4362450e204edc50f2c9b3bd5d28da2a54fbff5 (patch)
tree9b704d40642ac202171629462df66ca57c261696 /tag-emacs/emacs.d/init.el
parent9fcd243e3b4c2fb9a540b7d0651c730fd2ac31d1 (diff)
downloaddotfiles-a4362450e204edc50f2c9b3bd5d28da2a54fbff5.tar.lz
dotfiles-a4362450e204edc50f2c9b3bd5d28da2a54fbff5.tar.zst
dotfiles-a4362450e204edc50f2c9b3bd5d28da2a54fbff5.zip
Emacs: Add and configure Go packages
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-rw-r--r--tag-emacs/emacs.d/init.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 62bd000..5b5feef 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -591,6 +591,20 @@
   :diminish (flycheck-mode . " ✓")
   :init (global-flycheck-mode))
 
+(req-package company-go
+  :require go-mode
+  :config (progn
+            (setq company-go-show-annotation t)
+            (defun ap/company-go-setup ()
+              (set (make-local-variable 'company-backends)
+                   '(company-go)))
+            (add-hook 'go-mode-hook #'ap/company-go-setup)))
+
+(req-package go-eldoc
+  :require go-mode
+  :config (progn
+            (add-hook 'go-mode-hook #'go-eldoc-setup)))
+
 (req-package auto-compile
   :init (add-hook 'emacs-lisp-mode-hook #'auto-compile-on-save-mode))