editor/multiple-cursors: fix unbound evil-mc keybinds

This commit is contained in:
Henrik Lissner 2019-10-27 14:01:49 -04:00
parent 94c2f91b75
commit 5f9778edd6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 18 additions and 20 deletions

View file

@ -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