From 45f5e3a7e71a2a41acd631e28ccdfa3161e00918 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 5 Sep 2023 17:30:24 +0000 Subject: [PATCH] add hydra emacs --- config/emacs/init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/emacs/init.el b/config/emacs/init.el index 59b7ad3f..3f8ef8f3 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -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