(Emacs)~make completions-list an evil-normal-mode system
This commit is contained in:
@@ -527,12 +527,18 @@ looking for a command.
|
|||||||
:general
|
:general
|
||||||
(general-def
|
(general-def
|
||||||
:keymaps 'completion-list-mode-map
|
:keymaps 'completion-list-mode-map
|
||||||
|
:states 'normal
|
||||||
"l" #'next-completion
|
"l" #'next-completion
|
||||||
"h" #'previous-completion
|
"h" #'previous-completion
|
||||||
"j" #'next-line
|
|
||||||
"k" #'previous-line
|
|
||||||
"ESC" #'delete-completion-window
|
"ESC" #'delete-completion-window
|
||||||
"q" #'quit-window))
|
"q" #'quit-window
|
||||||
|
"RET" #'choose-completion)
|
||||||
|
:config
|
||||||
|
(with-eval-after-load "evil"
|
||||||
|
(setq evil-emacs-state-modes (cl-remove-if
|
||||||
|
#'(lambda (x) (eq 'completions-list-mode x))
|
||||||
|
evil-emacs-state-modes))
|
||||||
|
(add-to-list 'evil-normal-state-modes 'completions-list-mode)))
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Ivy
|
*** Ivy
|
||||||
Ivy is a completion framework for Emacs, and my preferred (sometimes
|
Ivy is a completion framework for Emacs, and my preferred (sometimes
|
||||||
|
|||||||
Reference in New Issue
Block a user