ReverseFlux

visual regexp

Feb 9th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. ;; if the files are not already in the load path
  2. (add-to-list 'load-path "folder-to/visual-regexp/")
  3. (add-to-list 'load-path "folder-to/visual-regexp-steroids/")
  4. (require 'visual-regexp-steroids)
  5. (define-key global-map (kbd "C-c r") 'vr/replace)
  6. (define-key global-map (kbd "C-c q") 'vr/query-replace)
  7. ;; if you use multiple-cursors, this is for you:
  8. (define-key global-map (kbd "C-c m") 'vr/mc-mark)
  9. ;; to use visual-regexp-steroids's isearch instead of the built-in regexp isearch, also include the following lines:
  10. (define-key esc-map (kbd "C-r") 'vr/isearch-backward) ;; C-M-r
  11. (define-key esc-map (kbd "C-s") 'vr/isearch-forward) ;; C-M-s
Advertisement
Add Comment
Please, Sign In to add comment