diff options
| author | Raul Benencia <id@rbenencia.name> | 2026-08-11 22:39:57 -0700 |
|---|---|---|
| committer | Raul Benencia <id@rbenencia.name> | 2026-08-11 22:48:29 -0700 |
| commit | 402308613cbde3b9a0974ee151f3d2507f0eed05 (patch) | |
| tree | 36cb97027c8e63d8a323bbf5c3bcd6d391fedd83 /.emacs.d/rul-lisp/packages/rul-bindings.el | |
| parent | 276d6b0772d4713fa7375b1d19611db29305bb4e (diff) | |
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.
Diffstat (limited to '.emacs.d/rul-lisp/packages/rul-bindings.el')
| -rw-r--r-- | .emacs.d/rul-lisp/packages/rul-bindings.el | 38 |
1 files changed, 3 insertions, 35 deletions
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") - ("<return>" 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 |
