Fix #3509: add swiper-mc to mc/cmds-to-run-once

This commit is contained in:
Henrik Lissner 2020-07-23 00:57:00 -04:00
parent 7a868b1537
commit 8609e22f73
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -132,6 +132,8 @@
(after! multiple-cursors-core
(setq mc/list-file (concat doom-etc-dir "mc-lists.el"))
(add-to-list 'mc/cmds-to-run-once 'swiper-mc)
;; TODO multiple-cursors config for Emacs users?
;; mc doesn't play well with evil, this attempts to assuage some of its
@ -143,9 +145,6 @@
(defvar +mc--compat-evil-prev-state nil)
(defvar +mc--compat-mark-was-active nil)
(after! swiper
(add-to-list 'mc/cmds-to-run-once 'swiper-mc))
(add-hook! 'multiple-cursors-mode-enabled-hook
(defun +multiple-cursors-compat-switch-to-emacs-state-h ()
(when (and (bound-and-true-p evil-mode)