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.
This commit is contained in:
Henrik Lissner 2018-09-07 22:03:24 -04:00
parent 18554ca5b5
commit 89b83f2457
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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