Resume evil-mc upon switching to insert mode #618
I believe this is intuitive, but I've designed it to be easily disabled with: (remove-hook 'evil-insert-state-entry-hook #'+evil-mc|resume-cursors)
This commit is contained in:
parent
5e9030500c
commit
3c967cf3a3
1 changed files with 4 additions and 0 deletions
|
@ -326,6 +326,10 @@ the new algorithm is confusing, like in python or ruby."
|
||||||
(map-put evil-mc-custom-known-commands
|
(map-put evil-mc-custom-known-commands
|
||||||
fn '((:default . evil-mc-execute-default-call))))
|
fn '((:default . evil-mc-execute-default-call))))
|
||||||
|
|
||||||
|
;; Activate evil-mc cursors upon switching to insert mode
|
||||||
|
(defun +evil-mc|resume-cursors () (setq evil-mc-frozen nil))
|
||||||
|
(add-hook 'evil-insert-state-entry-hook #'+evil-mc|resume-cursors)
|
||||||
|
|
||||||
;; disable evil-escape in evil-mc; causes unwanted text on invocation
|
;; disable evil-escape in evil-mc; causes unwanted text on invocation
|
||||||
(add-to-list 'evil-mc-incompatible-minor-modes 'evil-escape-mode nil #'eq)
|
(add-to-list 'evil-mc-incompatible-minor-modes 'evil-escape-mode nil #'eq)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue