summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-04-24 15:29:53 +0200
committerAlan Pearce2017-04-24 15:29:53 +0200
commitebf4da622c7c25ea7768de7b94925db7c4a1e8c4 (patch)
tree9d8999223fa5bc1d3c203d45d094ae6e8bf7e2fe /emacs
parent5483239c6f3057ecb66a7be7687ed6118df6f362 (diff)
downloadnixfiles-ebf4da622c7c25ea7768de7b94925db7c4a1e8c4.tar.lz
nixfiles-ebf4da622c7c25ea7768de7b94925db7c4a1e8c4.tar.zst
nixfiles-ebf4da622c7c25ea7768de7b94925db7c4a1e8c4.zip
Emacs: Bind multiple-cursors keys via override keymap
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org11
1 files changed, 5 insertions, 6 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 120b4a32..a2a664a8 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -2437,12 +2437,11 @@ saw that multiple-cursors was released for Emacs.
 #+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