(Emacs)~fixed error with evil-mc
I put it in the wrong format, coming from ~define-key~.
This commit is contained in:
@@ -365,22 +365,23 @@ which pauses cursors upon placing a cursor at the current position.
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package evil-mc
|
(use-package evil-mc
|
||||||
:after evil
|
:after evil
|
||||||
:general
|
|
||||||
(dx:evil-mc-map
|
|
||||||
("q" . evil-mc-undo-all-cursors)
|
|
||||||
("d" . evil-mc-make-and-goto-next-match)
|
|
||||||
("j" . evil-mc-make-cursor-move-next-line)
|
|
||||||
("k" . evil-mc-make-cursor-move-prev-line)
|
|
||||||
("j" . evil-mc-make-cursor-move-next-line)
|
|
||||||
("m" . evil-mc-make-all-cursors)
|
|
||||||
("z" . +dx/evil-mc-cursor-here)
|
|
||||||
("r" . evil-mc-resume-cursors)
|
|
||||||
("s" . evil-mc-pause-cursors))
|
|
||||||
:init
|
:init
|
||||||
(setq evil-mc-key-map nil)
|
(setq-default evil-mc-key-map nil)
|
||||||
|
(with-eval-after-load "general"
|
||||||
(general-create-definer dx:evil-mc-map
|
(general-create-definer dx:evil-mc-map
|
||||||
:states 'normal
|
:states 'normal
|
||||||
:prefix "gz")
|
:prefix "gz"))
|
||||||
|
:general
|
||||||
|
(dx:evil-mc-map
|
||||||
|
"q" #'evil-mc-undo-all-cursors
|
||||||
|
"d" #'evil-mc-make-and-goto-next-match
|
||||||
|
"j" #'evil-mc-make-cursor-move-next-line
|
||||||
|
"k" #'evil-mc-make-cursor-move-prev-line
|
||||||
|
"j" #'evil-mc-make-cursor-move-next-line
|
||||||
|
"m" #'evil-mc-make-all-cursors
|
||||||
|
"z" #'+dx/evil-mc-cursor-here
|
||||||
|
"r" #'evil-mc-resume-cursors
|
||||||
|
"s" #'evil-mc-pause-cursors)
|
||||||
:config
|
:config
|
||||||
(global-evil-mc-mode +1)
|
(global-evil-mc-mode +1)
|
||||||
(defun +dx/evil-mc-cursor-here ()
|
(defun +dx/evil-mc-cursor-here ()
|
||||||
|
|||||||
Reference in New Issue
Block a user