Make evil-mc cooperate with smartparens better
This commit is contained in:
parent
4863f9fbf0
commit
edc09ecab8
1 changed files with 7 additions and 0 deletions
|
@ -286,6 +286,13 @@ the new algorithm is confusing, like in python or ruby."
|
||||||
:config
|
:config
|
||||||
(global-evil-mc-mode +1)
|
(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
|
;; Add custom commands to whitelisted commands
|
||||||
(dolist (fn '(doom/backward-to-bol-or-indent doom/forward-to-last-non-comment-or-eol
|
(dolist (fn '(doom/backward-to-bol-or-indent doom/forward-to-last-non-comment-or-eol
|
||||||
doom/backward-kill-to-bol-and-indent))
|
doom/backward-kill-to-bol-and-indent))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue