editor/multiple-cursors: fix unbound evil-mc keybinds
This commit is contained in:
parent
94c2f91b75
commit
5f9778edd6
2 changed files with 18 additions and 20 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue