Make evil-mc cooperate with smartparens better

This commit is contained in:
Henrik Lissner 2018-05-28 17:33:52 +02:00
parent 4863f9fbf0
commit edc09ecab8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -286,6 +286,13 @@ the new algorithm is confusing, like in python or ruby."
:config
(global-evil-mc-mode +1)
(after! smartparens
;; Make evil-mc cooperate with smartparens better
(unless (memq (car sp--mc/cursor-specific-vars) (cdr (assq :default evil-mc-cursor-variables)))
(setcdr (assq :default evil-mc-cursor-variables)
(append (cdr (assq :default evil-mc-cursor-variables))
sp--mc/cursor-specific-vars))))
;; Add custom commands to whitelisted commands
(dolist (fn '(doom/backward-to-bol-or-indent doom/forward-to-last-non-comment-or-eol
doom/backward-kill-to-bol-and-indent))