branch: elpa/multiple-cursors
commit a4d406e6e1b5a38a5c5f9dad06d52e446cf4b9ab
Author: Magnar Sveen <[email protected]>
Commit: Magnar Sveen <[email protected]>
Conclude multiple-cursors-mode with <return>
- you can still add a newline with C-m if you're into that kind of pain.
---
multiple-cursors.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/multiple-cursors.el b/multiple-cursors.el
index b418811..22bf1c7 100644
--- a/multiple-cursors.el
+++ b/multiple-cursors.el
@@ -195,12 +195,13 @@ you should disable multiple-cursors-mode."
(defvar mc/keymap nil
"Keymap while multiple cursors are active.
-Main goal of the keymap is to rebind C-g to conclude multiple
-cursors editing.")
+Main goal of the keymap is to rebind C-g and <return> to conclude
+multiple cursors editing.")
(if mc/keymap
nil
(setq mc/keymap (make-sparse-keymap))
- (define-key mc/keymap (kbd "C-g") 'multiple-cursors-mode))
+ (define-key mc/keymap (kbd "C-g") 'multiple-cursors-mode)
+ (define-key mc/keymap (kbd "<return>") 'multiple-cursors-mode))
(define-minor-mode multiple-cursors-mode
"Mode while multiple cursors are active."