diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index ba04931bd..29e8cd2e9 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -82,6 +82,23 @@ :n "q" #'kill-current-buffer) :m "gs" #'+evil/easymotion ; lazy-load `evil-easymotion' + (:when (featurep! :editor multiple-cursors) + :prefix "gz" + :nv "d" #'evil-mc-make-and-goto-next-match + :nv "D" #'evil-mc-make-and-goto-prev-match + :nv "j" #'evil-mc-make-cursor-move-next-line + :nv "k" #'evil-mc-make-cursor-move-prev-line + :nv "m" #'evil-mc-make-all-cursors + :nv "n" #'evil-mc-make-and-goto-next-cursor + :nv "N" #'evil-mc-make-and-goto-last-cursor + :nv "p" #'evil-mc-make-and-goto-prev-cursor + :nv "P" #'evil-mc-make-and-goto-first-cursor + :nv "q" #'evil-mc-undo-all-cursors + :nv "t" #'+multiple-cursors/evil-mc-toggle-cursors + :nv "u" #'evil-mc-undo-last-added-cursor + :nv "z" #'+multiple-cursors/evil-mc-make-cursor-here + :v "I" #'evil-mc-make-cursor-in-visual-selection-beg + :v "A" #'evil-mc-make-cursor-in-visual-selection-end) ;; misc :n "C-S-f" #'toggle-frame-fullscreen diff --git a/modules/editor/multiple-cursors/config.el b/modules/editor/multiple-cursors/config.el index ac358df02..7c5a51420 100644 --- a/modules/editor/multiple-cursors/config.el +++ b/modules/editor/multiple-cursors/config.el @@ -38,8 +38,6 @@ ;; conflicts, so we'll set them ourselves. (defvar evil-mc-key-map (make-sparse-keymap)) - (defvar +multiple-cursors-evil-mc-prefix "gz" - "Where to store `evil-mc' keybinds.") :config (global-evil-mc-mode +1) @@ -91,24 +89,7 @@ :nv "C-n" #'evil-mc-make-and-goto-next-cursor :nv "C-N" #'evil-mc-make-and-goto-last-cursor :nv "C-p" #'evil-mc-make-and-goto-prev-cursor - :nv "C-P" #'evil-mc-make-and-goto-first-cursor - :when +multiple-cursors-evil-mc-prefix - (:prefix +multiple-cursors-evil-mc-prefix - :nv "d" #'evil-mc-make-and-goto-next-match - :nv "D" #'evil-mc-make-and-goto-prev-match - :nv "j" #'evil-mc-make-cursor-move-next-line - :nv "k" #'evil-mc-make-cursor-move-prev-line - :nv "m" #'evil-mc-make-all-cursors - :nv "n" #'evil-mc-make-and-goto-next-cursor - :nv "N" #'evil-mc-make-and-goto-last-cursor - :nv "p" #'evil-mc-make-and-goto-prev-cursor - :nv "P" #'evil-mc-make-and-goto-first-cursor - :nv "q" #'evil-mc-undo-all-cursors - :nv "t" #'+multiple-cursors/evil-mc-toggle-cursors - :nv "u" #'evil-mc-undo-last-added-cursor - :nv "z" #'+multiple-cursors/evil-mc-make-cursor-here - :v "I" #'evil-mc-make-cursor-in-visual-selection-beg - :v "A" #'evil-mc-make-cursor-in-visual-selection-end))) + :nv "C-P" #'evil-mc-make-and-goto-first-cursor)) (after! multiple-cursors-core