From 11402c7859f3a88fdbe466e9899ee4db4c71c78b Mon Sep 17 00:00:00 2001 From: JaeYoo-Im Date: Fri, 19 Apr 2024 13:42:30 +0900 Subject: [PATCH] emacs : hideshow toggle hiding --- .config/emacs/lisp/init-general.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/emacs/lisp/init-general.el b/.config/emacs/lisp/init-general.el index 85bbd01..8c8bf5f 100644 --- a/.config/emacs/lisp/init-general.el +++ b/.config/emacs/lisp/init-general.el @@ -11,6 +11,8 @@ (global-set-key (kbd "C-=") 'text-scale-increase) (global-set-key (kbd "C--") 'text-scale-decrease) +(global-set-key (kbd "C-") 'hs-toggle-hiding) + ;; When you begin a keybind, whichkey will show you all keybinds you can follow the first one with in order to form a full keywords. (use-package which-key :defer t @@ -66,7 +68,7 @@ ;; Hydra "h" '(:ignore t :which-key "hydra / hideshow") "h h" '(:ignore t :which-key "hydra") - "h t" '(hs-toggle-all :which-key "hideshow toggle hiding") + "h t" '(hs-toggle-hiding :which-key "hideshow toggle hiding") "h a" '(hs-hide-all :which-key "hideshow hide all") "h s" '(hs-show-all :which-key "hideshow show all") ;; "h t" '(hydra-text-scale/body :which-key "scale text")