From 35c0937784f6163430fb12a00435a7e46415036a Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Thu, 28 Aug 2014 18:40:43 +0300 Subject: [PATCH] Use anzu for query-replace --- core/prelude-editor.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/prelude-editor.el b/core/prelude-editor.el index a0921ae..1388d35 100644 --- a/core/prelude-editor.el +++ b/core/prelude-editor.el @@ -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)