diff options
author | Timo Wilken | 2023-11-03 23:01:27 +0100 |
---|---|---|
committer | Timo Wilken | 2023-11-03 23:01:27 +0100 |
commit | 864628dde78720f141b5a6af833315b0d3ed46e3 (patch) | |
tree | ad5be9b5815886fd6c7fc1ee7776f7b09a8457aa /tw/home | |
parent | 473e4d6341899e29ffe5410c4b80be1afb5cc6ce (diff) |
Remove obsolete comment about <leader> in diff-mode
Diffstat (limited to 'tw/home')
-rw-r--r-- | tw/home/files/emacs-init.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el index 12f8e5e3..e0dd0355 100644 --- a/tw/home/files/emacs-init.el +++ b/tw/home/files/emacs-init.el @@ -697,8 +697,6 @@ For use in `org-latex-classes'." (evil-mode +1) (evil-set-leader '(normal visual) (kbd "SPC")) ; <leader> (evil-set-leader '(normal visual) (kbd "\\") t) ; <localleader> - ;; For some reason, in `diff-mode', space isn't assigned to the leader key - ;; automatically, unlike in other modes. (evil-define-key '(normal motion) diff-mode-shared-map ; not `diff-mode-map', else toggling `read-only-mode' destroys the binding (kbd "<localleader>\\") #'read-only-mode) ; mirror default binding from evil-collection (evil-define-key '(normal insert visual replace) 'global @@ -753,6 +751,8 @@ For use in `org-latex-classes'." :config (evil-collection-init) :diminish evil-collection-unimpaired-mode :custom + ;; Without `evil-collection-key-blacklist', in `diff-mode', space isn't + ;; assigned to the leader key automatically, unlike in other modes. (evil-collection-key-blacklist '("SPC" "\\") "Don't bind to our leader keys at all.") (evil-collection-setup-minibuffer t "Use evil-collection in minibuffer to match `evil-want-minibuffer'.")) |