From 52701676705feb020a0a24773416b8f99b90ff3e Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Fri, 15 Apr 2022 10:56:13 -0700 Subject: emacs: go hydra --- .emacs.local.d/modes/hydra.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.emacs.local.d/modes') diff --git a/.emacs.local.d/modes/hydra.el b/.emacs.local.d/modes/hydra.el index 071581b..17da76e 100644 --- a/.emacs.local.d/modes/hydra.el +++ b/.emacs.local.d/modes/hydra.el @@ -54,7 +54,7 @@ _s-f_: file _a_: ag _i_: Ibuffer _c_: cache ;; tab-bar (defhydra hydra-tab-bar (:color amaranth) "Tab Bar Operations" - ("t" tab-new "Create a new tab" :column "Creation") + ("t" tab-new "Create a new tab" :column "Creation" :exit t) ("d" dired-other-tab "Open Dired in another tab") ("f" find-file-other-tab "Find file in another tab") ("x" tab-close "Close current tab") @@ -74,3 +74,11 @@ _s-f_: file _a_: ag _i_: Ibuffer _c_: cache ("l" text-scale-decrease "out")) (global-set-key (kbd "C-c z") 'hydra-zoom/body) + +;; Go +(defhydra hydra-go () + "zoom" + ("=" gofmt :exit t) + ("c" go-coverage :exit t)) + +(global-set-key (kbd "C-c m") 'hydra-go/body) -- cgit v1.2.3