summaryrefslogtreecommitdiff
path: root/tw
diff options
context:
space:
mode:
Diffstat (limited to 'tw')
-rw-r--r--tw/home/files/emacs-init.el4
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'."))