From 402308613cbde3b9a0974ee151f3d2507f0eed05 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Tue, 11 Aug 2026 22:39:57 -0700 Subject: emacs: replace hydras with built-in equivalents hydra-tab-bar shadowed C-x t, which is already tab-prefix-map: 2 new, 0 close, r rename, m move, d dired, f find-file, RET switch. hydra-zoom is text-scale-adjust, which repeats on its own. hydra-go bound gofmt, already run by gofmt-before-save, and go-coverage; dropping it also stops shadowing consult-man on C-c m. Removes the hydra dependency. --- .emacs.d/rul-lisp/packages/rul-bindings.el | 38 +++--------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) (limited to '.emacs.d/rul-lisp/packages') diff --git a/.emacs.d/rul-lisp/packages/rul-bindings.el b/.emacs.d/rul-lisp/packages/rul-bindings.el index 3a608c0..0ae80f3 100644 --- a/.emacs.d/rul-lisp/packages/rul-bindings.el +++ b/.emacs.d/rul-lisp/packages/rul-bindings.el @@ -9,41 +9,9 @@ (global-set-key (kbd "C--") #'help/insert-em-dash) -(use-package hydra - :ensure t - :defer 1) - -;; tab-bar -(defhydra hydra-tab-bar (:color amaranth) - "Tab Bar Operations" - ("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") - ("m" tab-move "Move current tab" :column "Management") - ("r" tab-rename "Rename Tab") - ("" tab-bar-select-tab-by-name "Select tab by name" :column "Navigation") - ("l" tab-next "Next Tab") - ("j" tab-previous "Previous Tab") - ("q" nil "Exit" :exit t)) - -(global-set-key (kbd "C-x t") 'hydra-tab-bar/body) - -;; Zoom -(defhydra hydra-zoom () - "zoom" - ("g" text-scale-increase "in") - ("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) +;; Zoom. `text-scale-adjust' keeps reading +, -, and 0 after being +;; invoked, so it repeats like a hydra without needing one. +(global-set-key (kbd "C-c z") #'text-scale-adjust) (use-package which-key :ensure t -- cgit v1.2.3