summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-05-23 16:43:39 -0700
committerFranck Cuny <fcuny@twitter.com>2019-05-23 16:43:39 -0700
commitcf9783facfd9a33acecbba59562e595075faa48c (patch)
treea69654c5cb127d3049648f2b18551a2c111e3435
parent[emacs] fix prompt for candidate name in template. (diff)
downloademacs.d-cf9783facfd9a33acecbba59562e595075faa48c.tar.gz
[emacs] add a few bindings for go.
-rw-r--r--emacs.d/custom/fcuny-go.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs.d/custom/fcuny-go.el b/emacs.d/custom/fcuny-go.el
index 77248eb..b7a7d1b 100644
--- a/emacs.d/custom/fcuny-go.el
+++ b/emacs.d/custom/fcuny-go.el
@@ -2,6 +2,12 @@
   :ensure t
   :after (exec-path-from-shell flycheck flyspell)
   :hook (go-mode . fcuny/go-mode-setup)
+  :bind (("M-?" . godoc-at-point)
+         ("M-." . godef-jump)
+         ;; Jump back after godef-jump
+         ("M-*" . pop-tag-mark))
+  :custom
+  (godoc-use-completing-read t)
   :init
   (defun fcuny/go-mode-setup ()
     (setq tab-width 4)