Add visual regex mode
This commit is contained in:
parent
e2fad295e6
commit
6314c9941e
2 changed files with 8 additions and 2 deletions
|
|
@ -32,8 +32,12 @@
|
||||||
;; Key bindings
|
;; Key bindings
|
||||||
(define-key prog-mode-map (kbd "C-d") 'dash-at-point) ;; Jump to dash definition
|
(define-key prog-mode-map (kbd "C-d") 'dash-at-point) ;; Jump to dash definition
|
||||||
(define-key prog-mode-map (kbd "C-c c") 'comment-line)
|
(define-key prog-mode-map (kbd "C-c c") 'comment-line)
|
||||||
(define-key prog-mode-map (kbd "C-c r") 'align-regexp) ;; Because C-c a is used by ag already.
|
(define-key prog-mode-map (kbd "C-c r") 'align-regexp) ;; Because C-c a is used
|
||||||
|
;; by ag already.
|
||||||
(define-key prog-mode-map (kbd "C-c i") 'indent-region)
|
(define-key prog-mode-map (kbd "C-c i") 'indent-region)
|
||||||
|
(define-key prog-mode-map (kbd "C-c v") 'vr/replace) ;; Visually replace all
|
||||||
|
;; occurences of a specific
|
||||||
|
;; regex
|
||||||
|
|
||||||
;; When possible, show code documentation
|
;; When possible, show code documentation
|
||||||
(global-eldoc-mode 1)
|
(global-eldoc-mode 1)
|
||||||
|
|
|
||||||
4
init.el
4
init.el
|
|
@ -40,6 +40,8 @@
|
||||||
yasnippet ;; Code snippets framework
|
yasnippet ;; Code snippets framework
|
||||||
yasnippet-snippets ;; Actual snippets for various languages
|
yasnippet-snippets ;; Actual snippets for various languages
|
||||||
flycheck ;; Compilation framework
|
flycheck ;; Compilation framework
|
||||||
|
visual-regexp ;; Regexp replacement with preview in
|
||||||
|
;; current buffer.
|
||||||
|
|
||||||
;; Project management
|
;; Project management
|
||||||
projectile
|
projectile
|
||||||
|
|
@ -110,7 +112,7 @@
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
(quote
|
(quote
|
||||||
(enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell))))
|
(visual-regexp enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell))))
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue