From 864628dde78720f141b5a6af833315b0d3ed46e3 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 3 Nov 2023 23:01:27 +0100 Subject: Remove obsolete comment about in diff-mode --- tw/home/files/emacs-init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tw') 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")) ; (evil-set-leader '(normal visual) (kbd "\\") t) ; - ;; 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 "\\") #'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'.")) -- cgit v1.2.3