summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa@gaiwan.org2024-06-14 14:40:12 +0000
committernoa@gaiwan.org2024-06-14 14:40:12 +0000
commit5011a4fa9d911ca7c61d035c8f55e34dc10af0c1 (patch)
tree5212001a31c9f7d5a1210afb2503e16b607a9adb
parent618d274e329b6bea0f5e0f677e7ff0f608d4dc08 (diff)
Use anzu instead of query-replace commands
-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)