summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Giquel <frederic.giquel@laposte.net>2024-03-14 20:46:07 +0100
committerYoumu <condy0919@gmail.com>2024-03-15 13:39:53 +0800
commitcf7c7f142a1aba42ee27ec424190b4b036591815 (patch)
treec9bbbd84fbbb4b5a2196dae713253aa71a668a9c
parent323ae97eae0521d9163db02398be02587251d288 (diff)
magit-todos: unbind "k" in *-section-map
-rw-r--r--modes/magit-todos/evil-collection-magit-todos.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/modes/magit-todos/evil-collection-magit-todos.el b/modes/magit-todos/evil-collection-magit-todos.el
index 1b629b1..891904b 100644
--- a/modes/magit-todos/evil-collection-magit-todos.el
+++ b/modes/magit-todos/evil-collection-magit-todos.el
@@ -47,12 +47,10 @@
;;;###autoload
(defun evil-collection-magit-todos-setup ()
"Set up `evil' bindings for `magit-todos'."
- ;; magit-todos binds jT which prevents evil users from stepping into the section
- (evil-collection-define-key nil 'magit-todos-section-map
- "j" nil)
-
- (evil-collection-define-key nil 'magit-todos-item-section-map
- "j" nil)
+ ;; magit-todos binds jT and k which prevents evil users from stepping into the section
+ (dolist (key '("j" "k"))
+ (evil-collection-define-key nil 'magit-todos-section-map key nil)
+ (evil-collection-define-key nil 'magit-todos-item-section-map key nil))
;; No need to tell me that jT isn't bound
(advice-add 'magit-todos-mode :around 'evil-collection-magit-todos-supress-warning)