aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2022-02-04 03:52:30 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2022-02-04 03:52:30 +0000
commit8a65bbcd3b507638ce78625ee4f02f6564d85abc (patch)
tree060f030e8063625bf60391613550664b32ee676e /Emacs
parent83153479af62c14acc5d2484ab3301affdb4d338 (diff)
downloaddotfiles-8a65bbcd3b507638ce78625ee4f02f6564d85abc.tar.gz
dotfiles-8a65bbcd3b507638ce78625ee4f02f6564d85abc.tar.bz2
dotfiles-8a65bbcd3b507638ce78625ee4f02f6564d85abc.zip
(Emacs)~fixed error with evil-mc
I put it in the wrong format, coming from ~define-key~.
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org29
1 files changed, 15 insertions, 14 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index d011fbb..8c32c21 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -365,22 +365,23 @@ which pauses cursors upon placing a cursor at the current position.
#+begin_src emacs-lisp
(use-package evil-mc
:after evil
+ :init
+ (setq-default evil-mc-key-map nil)
+ (with-eval-after-load "general"
+ (general-create-definer dx:evil-mc-map
+ :states 'normal
+ :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))
- :init
- (setq evil-mc-key-map nil)
- (general-create-definer dx:evil-mc-map
- :states 'normal
- :prefix "gz")
+ "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
(global-evil-mc-mode +1)
(defun +dx/evil-mc-cursor-here ()