From 5011a4fa9d911ca7c61d035c8f55e34dc10af0c1 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Fri, 14 Jun 2024 14:40:12 +0000 Subject: Use anzu instead of query-replace commands --- emacs/init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs/init.el') 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) -- cgit 1.4.1-2-gfad0