all repos — archive/dotfiles @ ebf4da622c7c25ea7768de7b94925db7c4a1e8c4

Superseded by nixfiles

Emacs: Bind multiple-cursors keys via override keymap
Alan Pearce alan@alanpearce.uk
Mon, 24 Apr 2017 15:29:53 +0200
commit

ebf4da622c7c25ea7768de7b94925db7c4a1e8c4

parent

5483239c6f3057ecb66a7be7687ed6118df6f362

1 files changed, 5 insertions(+), 6 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -2437,12 +2437,11 @@ #+BEGIN_SRC emacs-lisp
 (use-package multiple-cursors
   :defer 1
-  :config (progn
-            (bind-key "C-." #'mc/mark-next-like-this)
-            (bind-key "C-," #'mc/mark-previous-like-this)
-            (bind-key "M-<f3>" #'mc/mark-all-like-this-dwim)
-            (bind-key "C-<f3>" #'mc/mark-more-like-this-extended)
-            (bind-key "C-S-L" #'mc/edit-lines)))
+  :bind* (("C-." . mc/mark-next-like-this)
+          ("C-," . mc/mark-previous-like-this)
+          ("M-<f3>" . mc/mark-all-like-this-dwim)
+          ("C-<f3>" . mc/mark-more-like-this-extended)
+          ("C-S-L" . mc/edit-lines)))
 #+END_SRC
 
 ** paredit