mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-25 14:13:37 -05:00
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:
@@ -326,6 +326,10 @@ the new algorithm is confusing, like in python or ruby."
|
||||
(map-put evil-mc-custom-known-commands
|
||||
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
|
||||
(add-to-list 'evil-mc-incompatible-minor-modes 'evil-escape-mode nil #'eq)
|
||||
|
||||
|
Reference in New Issue
Block a user