branch: elpa/multiple-cursors
commit bf0177205e0a11bc5fde9abae715c71f348219de
Author: Magnar Sveen <[email protected]>
Commit: Magnar Sveen <[email protected]>

    Use phi-search for C-s in mc-mode when available.
---
 multiple-cursors-core.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 26c8baa..2d1b9c7 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -400,7 +400,9 @@ multiple cursors editing.")
     nil
   (setq mc/keymap (make-sparse-keymap))
   (define-key mc/keymap (kbd "C-g") 'mc/keyboard-quit)
-  (define-key mc/keymap (kbd "<return>") 'multiple-cursors-mode))
+  (define-key mc/keymap (kbd "<return>") 'multiple-cursors-mode)
+  (when (fboundp 'phi-search)
+    (define-key mc/keymap (kbd "C-s") 'phi-search)))
 
 (defun mc--all-equal (entries)
   "Are all these entries equal?"

Reply via email to