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:
parent
18554ca5b5
commit
89b83f2457
1 changed files with 3 additions and 1 deletions
|
@ -257,7 +257,9 @@ line with a linewise comment.")
|
||||||
(evil-define-key* '(insert replace visual operator) 'global "\C-g" #'evil-escape)
|
(evil-define-key* '(insert replace visual operator) 'global "\C-g" #'evil-escape)
|
||||||
:config
|
:config
|
||||||
;; no `evil-escape' in minibuffer
|
;; 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
|
(def-package! evil-exchange
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue