aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Benencia <rul@kalgan.cc>2022-04-15 10:56:13 -0700
committerRaul Benencia <rul@kalgan.cc>2022-04-15 10:56:30 -0700
commit52701676705feb020a0a24773416b8f99b90ff3e (patch)
treeeb558edef58994909003f60538678e771c1a64f0
parent0e6e38d1db99dc6563dc46101a0bcbb0db56a04c (diff)
emacs: go hydra
-rw-r--r--.emacs.local.d/modes/hydra.el10
1 files changed, 9 insertions, 1 deletions
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)
nihil fit ex nihilo