Use anzu for query-replace
This commit is contained in:
parent
e20088d581
commit
35c0937784
1 changed files with 4 additions and 1 deletions
|
@ -245,11 +245,14 @@ The body of the advice is in BODY."
|
|||
(setq projectile-cache-file (expand-file-name "projectile.cache" prelude-savefile-dir))
|
||||
(projectile-global-mode t)
|
||||
|
||||
;; anzu-mode enhances isearch by showing total matches and current match position
|
||||
;; anzu-mode enhances isearch & query-replace by showing total matches and current match position
|
||||
(require 'anzu)
|
||||
(diminish 'anzu-mode)
|
||||
(global-anzu-mode)
|
||||
|
||||
(global-set-key (kbd "M-%") 'anzu-query-replace)
|
||||
(global-set-key (kbd "C-M-%") 'anzu-query-replace-regexp)
|
||||
|
||||
;; shorter aliases for ack-and-a-half commands
|
||||
(defalias 'ack 'ack-and-a-half)
|
||||
(defalias 'ack-same 'ack-and-a-half-same)
|
||||
|
|
Loading…
Reference in a new issue