summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-09-13 16:38:44 -0700
committerFranck Cuny <fcuny@twitter.com>2019-09-13 16:38:44 -0700
commit85b2b72d885bff8faf877cb85d2fc4b5fea2fc9e (patch)
tree9de71d739e2521b3d10297bd22851363023d85aa
parent[emacs] once again, fonts (diff)
downloademacs.d-85b2b72d885bff8faf877cb85d2fc4b5fea2fc9e.tar.gz
[emacs] update hydra menu for go-mode
add a few more bindings to the menu, mostly for navigation and tests.
Diffstat (limited to '')
-rw-r--r--emacs.d/custom/fcuny-go.el21
1 files changed, 12 insertions, 9 deletions
diff --git a/emacs.d/custom/fcuny-go.el b/emacs.d/custom/fcuny-go.el
index b8b76dd..9c16a6e 100644
--- a/emacs.d/custom/fcuny-go.el
+++ b/emacs.d/custom/fcuny-go.el
@@ -43,19 +43,22 @@
 
   (defhydra hydra-go-menu (:columns 2)
     "
-^naviguation^       ^test^
-^-----------^       ^----^
-_r_: referrers      _t_: run this test
-_i_: implements     _f_: test this file
-_d_: definition
-_D_: describe
+^find       ^     ^goto    ^       ^test^
+^-----------^     ^--------^       ^----^
+_r_: referrers    _d_: definition  _T_: test current test
+_i_: implements   _a_: arguments   _F_: test current file
+_D_: describe     _f_: function    _P_: test current package
+                _r_: return
 "
     ("r" go-guru-referrers)
     ("i" go-guru-implements)
-    ("d" go-guru-definition)
     ("D" go-guru-describe)
-    ("t" go-test-current-test)
-    ("f" go-test-current-file)
+    ("d" go-guru-definition)
+    ("a" go-goto-arguments)
+    ("f" go-goto-function)
+    ("T" go-test-current-test)
+    ("F" go-test-current-file)
+    ("P" go-test-current-project)
     ("q" nil "quit" :color blue))
 
   (define-key go-mode-map (kbd "C-c g") 'hydra-go-menu/body))