summary refs log tree commit diff
path: root/emacs.d/custom
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-04-19 16:36:44 -0700
committerFranck Cuny <fcuny@twitter.com>2019-04-19 16:36:44 -0700
commit25163b6356470e31a3fe4eb5713d5cecf54402ef (patch)
treee3e03fbff4737e8ee6ecec176de35ecd585cbad9 /emacs.d/custom
parent[emacs] white-mode is for prog-mode only. (diff)
downloademacs.d-25163b6356470e31a3fe4eb5713d5cecf54402ef.tar.gz
[emacs] add a few more packages to work with go.
Diffstat (limited to 'emacs.d/custom')
-rw-r--r--emacs.d/custom/fcuny-go.el22
1 files changed, 22 insertions, 0 deletions
diff --git a/emacs.d/custom/fcuny-go.el b/emacs.d/custom/fcuny-go.el
index 905a12f..77248eb 100644
--- a/emacs.d/custom/fcuny-go.el
+++ b/emacs.d/custom/fcuny-go.el
@@ -10,4 +10,26 @@
   (when (memq window-system '(mac ns))
     (exec-path-from-shell-copy-env "GOPATH")))
 
+(use-package go-guru
+  :ensure t
+  :after go-mode
+  :commands (go-guru-describe go-guru-freevars go-guru-implements go-guru-peers
+             go-guru-referrers go-guru-definition go-guru-pointsto
+             go-guru-callstack go-guru-whicherrs go-guru-callers go-guru-callees
+             go-guru-expand-region)
+  :config
+  (unless (executable-find "guru")
+    (warn "go-mode: couldn't find guru, refactoring commands won't work"))
+  (add-hook 'go-mode-hook #'go-guru-hl-identifier-mode))
+
+(use-package go-eldoc
+  :ensure t
+  :after go-mode
+  :config
+  (add-hook 'go-mode-hook 'go-eldoc-setup))
+
+(use-package godoctor
+  :ensure t
+  :after go-mode)
+
 (provide 'fcuny-go)