From 1e7fbafcbe3046dcb7e26605b3785166e464d9dc Mon Sep 17 00:00:00 2001 From: Daniel Barter Date: Sun, 19 Sep 2021 12:23:17 -0700 Subject: [PATCH] use evil motion state for builtin emacs completion lists --- evil-keybindings.el | 10 +++++++++- evil-vars.el | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/evil-keybindings.el b/evil-keybindings.el index 084a06aa..10eee006 100644 --- a/evil-keybindings.el +++ b/evil-keybindings.el @@ -46,7 +46,15 @@ ;;; Buffer-menu -(evil-add-hjkl-bindings Buffer-menu-mode-map 'motion) +(evil-add-hjkl-bindings Buffer-menu-mode-map 'motion + (kbd "RET") 'Buffer-menu-select) + + +;;; completion-list + +(evil-add-hjkl-bindings completion-list-mode-map 'motion + (kbd "TAB") 'next-completion + (kbd "RET") 'choose-completion) ;; dictionary.el diff --git a/evil-vars.el b/evil-vars.el index c8add738..92508af7 100644 --- a/evil-vars.el +++ b/evil-vars.el @@ -877,6 +877,7 @@ expression matching the buffer's name and STATE is one of `normal', (defcustom evil-motion-state-modes '(apropos-mode Buffer-menu-mode + completion-list-mode calendar-mode color-theme-mode command-history-mode