From 85b2b72d885bff8faf877cb85d2fc4b5fea2fc9e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 13 Sep 2019 16:38:44 -0700 Subject: [emacs] update hydra menu for go-mode add a few more bindings to the menu, mostly for navigation and tests. --- emacs.d/custom/fcuny-go.el | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'emacs.d/custom') 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)) -- cgit 1.4.1