summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2014-09-03 11:49:57 +0200
committerrekado <rekado@elephly.net>2014-09-03 11:49:57 +0200
commitbce2cdd2c62140e9aea08ea411f95960205b96ed (patch)
treeed5129e994e13ae077ca3f5f5553105cb3af5f02
parent3bf8a807b718e657afd2d8796851c62c9cc63417 (diff)
use external regexp engine (visual-regexp-steroids)
-rw-r--r--Cask1
-rw-r--r--init.el10
2 files changed, 10 insertions, 1 deletions
diff --git a/Cask b/Cask
index 2daa85c..697c831 100644
--- a/Cask
+++ b/Cask
@@ -29,5 +29,6 @@
(depends-on "smex")
(depends-on "sublime-themes")
(depends-on "undo-tree")
+(depends-on "visual-regexp-steroids")
(depends-on "yasnippet")
diff --git a/init.el b/init.el
index 1f23cb9..269f053 100644
--- a/init.el
+++ b/init.el
@@ -42,6 +42,15 @@
(setq sml/theme 'respectful)
(sml/setup)
+(require 'visual-regexp-steroids)
+(define-key global-map (kbd "C-c r") 'vr/replace)
+(define-key global-map (kbd "C-c q") 'vr/query-replace)
+
+;; use visual-regexp-steroids's isearch instead of the built-in regexp
+;; isearch
+(define-key esc-map (kbd "C-r") 'vr/isearch-backward) ;; C-M-r
+(define-key esc-map (kbd "C-s") 'vr/isearch-forward) ;; C-M-s
+
; C-d on an empty line in the shell terminates the process.
@@ -268,7 +277,6 @@
(global-set-key (kbd "C-x C-k") (lambda ()
(interactive)
(kill-buffer (current-buffer))))
-(global-set-key (kbd "C-c r") 'replace-regexp)
(require 'shell-switcher)
(setq shell-switcher-mode t)