summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 387b75b..6cf669e 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -860,3 +860,9 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
         calendar-mark-holidays-flag t
         calendar-date-style 'iso)
 
+
+;;; Replace
+;; Anzu provides real-time updates to the replacement string when running query-replace.
+(use-package anzu :ensure t)
+(global-set-key [remap query-replace] 'anzu-query-replace)
+(global-set-key [remap query-replace-regexp] 'anzu-query-replace-regexp)