diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-08-12 21:55:25 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-09-14 00:45:42 +0100 |
commit | b5d8363a9c1cafd45761c47570305e901ba71404 (patch) | |
tree | 49c96a9e36eac984a14b2d70a86db29e58871cb7 | |
parent | 345ed86b51ac3ba7c3039841542db0ea9e51708c (diff) | |
download | dotfiles-b5d8363a9c1cafd45761c47570305e901ba71404.tar.gz dotfiles-b5d8363a9c1cafd45761c47570305e901ba71404.tar.bz2 dotfiles-b5d8363a9c1cafd45761c47570305e901ba71404.zip |
(Emacs)+toggles for undo-tree-visualize and whitespace-mode
-rw-r--r-- | Emacs/.config/emacs/config.org | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 748619e..621fb3b 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1908,7 +1908,10 @@ at once, without using a VCS like git (all in Emacs). #+begin_src emacs-lisp (use-package undo-tree :straight t - :hook (emacs-startup-hook . global-undo-tree-mode)) + :hook (after-init-hook . global-undo-tree-mode) + :general + (leader + "tu" #'undo-tree-visualize)) #+end_src *** White space Deleting whitespace, highlighting when going beyond the 80th character @@ -1921,6 +1924,8 @@ limit), so set it for specific modes need the help. :general (nmmap "M--" #'whitespace-cleanup) + (leader + "ts" #'whitespace-mode) :hook (before-save-hook . whitespace-cleanup) (c-mode-hook . whitespace-mode) |