From a2a472d81a1bf1a68e8605dbfe79069edbe74999 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 6 Nov 2013 16:42:45 +0000 Subject: [PATCH] Add phi-search to replace default C-s and C-r phi-search is fully compatible with multiple-cursors-mode ^_^ --- keybindings.el | 5 +++++ packages.el | 1 + 2 files changed, 6 insertions(+) diff --git a/keybindings.el b/keybindings.el index 90b7a20..ce8e484 100644 --- a/keybindings.el +++ b/keybindings.el @@ -31,6 +31,11 @@ ;; Duplicate line (via helpers.el) (global-set-key (kbd "C-x C-d") 'duplicate-current-line-or-region) +;; phi-search (enables C-s and C-r searching with multiple-cursors-mode). +(when (require 'phi-search nil 'noerror) + (global-set-key (kbd "C-s") 'phi-search) + (global-set-key (kbd "C-r") 'phi-search-backward)) + ;; Expand region (when (require 'expand-region nil 'noerror) (global-set-key (kbd "M-.") 'er/expand-region) diff --git a/packages.el b/packages.el index e17d840..c2d5c95 100644 --- a/packages.el +++ b/packages.el @@ -59,6 +59,7 @@ markdown-mode minimap multiple-cursors + phi-search php-mode projectile puppet-mode