aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-09-27 21:43:33 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-09-27 21:43:54 +0100
commita5c6a0bf22a6aad29de9b9d4d2ac9958903ac3dd (patch)
treebcf244d5f4fc5e117c0c78f4f6c97ae725ed8ebf /Emacs/.config
parent6d81cb20510070312efd3566051bff805f9da86a (diff)
downloaddotfiles-a5c6a0bf22a6aad29de9b9d4d2ac9958903ac3dd.tar.gz
dotfiles-a5c6a0bf22a6aad29de9b9d4d2ac9958903ac3dd.tar.bz2
dotfiles-a5c6a0bf22a6aad29de9b9d4d2ac9958903ac3dd.zip
(Emacs)~make completions-list an evil-normal-mode system
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/config.org12
1 files changed, 9 insertions, 3 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 076343d..c7c4c4f 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -527,12 +527,18 @@ looking for a command.
:general
(general-def
:keymaps 'completion-list-mode-map
+ :states 'normal
"l" #'next-completion
"h" #'previous-completion
- "j" #'next-line
- "k" #'previous-line
"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
*** Ivy
Ivy is a completion framework for Emacs, and my preferred (sometimes