evil-mc icon indicating copy to clipboard operation
evil-mc copied to clipboard

Conflicts with evil-smartparens

Open kozikow opened this issue 8 years ago • 1 comments

evil-smartparens doesn't work when using evil-mc. It could be useful to make them work together. Simple, temporary, solution is to disable evil-smartparens when working with multiple cursors. My code:

(defun disable-evil-smartparens ()
  (interactive)
  (evil-smartparens-mode -1))

(defun enable-evil-smartparens ()
  (interactive)
  (evil-smartparens-mode 1))

(advice-add 'evil-mc-resume-cursors :after #'disable-evil-smartparens)
(advice-add 'evil-mc-undo-all-cursors :after #'enable-evil-smartparens)

kozikow avatar Jun 22 '16 08:06 kozikow

Thanks for reporting. Another way to disable it would be to add evil-smartparens-mode to evil-mc-incompatible-minor-modes. A better fix would be to implement the necessary evil-smartparens commands, similar to https://github.com/gabesoft/evil-mc/commit/35b87e89123f287b8e5a35ded41cd1b4a3182d67

gabesoft avatar Jun 23 '16 02:06 gabesoft