add hydra emacs

This commit is contained in:
Sakooooo 2023-09-05 17:30:24 +00:00
parent 95744ba1f3
commit 45f5e3a7e7
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -187,11 +187,22 @@
(evil-set-initial-state 'messages-buffer-mode 'normal)
(evil-set-initial-state 'dashboard-mode 'normal))
;; extra things for Evil
(use-package evil-collection
:after evil
:config
(evil-collection-init))
;; hydra for text scale
(use-package hydra)
(defhydra hydra-text-scale (:timeout 4)
"scale text"
("j" text-scale-increase "in")
("k" text-scale-decrease "out")
("f" nil "finished" :exit t))
(sakomacs/leader-keys
"ts" '(hydra-text-scale/body :which-key "scale text"))
;; video
;; https://youtu.be/xaZMwNELaJY?t=1707