Minor refactor of evil-mc->smartparens integration
This commit is contained in:
parent
3c967cf3a3
commit
002f514b22
1 changed files with 4 additions and 4 deletions
|
@ -315,10 +315,10 @@ the new algorithm is confusing, like in python or ruby."
|
||||||
|
|
||||||
(after! smartparens
|
(after! smartparens
|
||||||
;; Make evil-mc cooperate with smartparens better
|
;; Make evil-mc cooperate with smartparens better
|
||||||
(unless (memq (car sp--mc/cursor-specific-vars) (cdr (assq :default evil-mc-cursor-variables)))
|
(let ((vars (cdr (assq :default evil-mc-cursor-variables))))
|
||||||
(setcdr (assq :default evil-mc-cursor-variables)
|
(unless (memq (car sp--mc/cursor-specific-vars) vars)
|
||||||
(append (cdr (assq :default evil-mc-cursor-variables))
|
(setcdr (assq :default evil-mc-cursor-variables)
|
||||||
sp--mc/cursor-specific-vars))))
|
(append vars 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue