From 89b83f2457549c2a53a45a53808f5a5edf442bcf Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 7 Sep 2018 22:03:24 -0400 Subject: [PATCH] Enable evil-escape-mode I know this is redundant with the pre-command-hook hook, but the hook allows us to lazy load the package, and the mode allows other modes (or the user) to interactively disable it. For example, evil-mc disabled it while cursors are active due to incompatibility. This isn't possible if the mode isn't enabled to begin with. --- modules/feature/evil/config.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/feature/evil/config.el b/modules/feature/evil/config.el index 6d804abd2..4af92139a 100644 --- a/modules/feature/evil/config.el +++ b/modules/feature/evil/config.el @@ -257,7 +257,9 @@ line with a linewise comment.") (evil-define-key* '(insert replace visual operator) 'global "\C-g" #'evil-escape) :config ;; no `evil-escape' in minibuffer - (add-hook 'evil-escape-inhibit-functions #'minibufferp)) + (add-hook 'evil-escape-inhibit-functions #'minibufferp) + ;; so that evil-escape-mode-hook runs, and can be toggled by evil-mc + (evil-escape-mode +1)) (def-package! evil-exchange