diff options
author | rekado <rekado@elephly.net> | 2014-09-03 11:49:57 +0200 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2014-09-03 11:49:57 +0200 |
commit | bce2cdd2c62140e9aea08ea411f95960205b96ed (patch) | |
tree | ed5129e994e13ae077ca3f5f5553105cb3af5f02 | |
parent | 3bf8a807b718e657afd2d8796851c62c9cc63417 (diff) |
use external regexp engine (visual-regexp-steroids)
-rw-r--r-- | Cask | 1 | ||||
-rw-r--r-- | init.el | 10 |
2 files changed, 10 insertions, 1 deletions
@@ -29,5 +29,6 @@ (depends-on "smex") (depends-on "sublime-themes") (depends-on "undo-tree") +(depends-on "visual-regexp-steroids") (depends-on "yasnippet") @@ -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) |