Remove region highlighting when use replacing fns

This commit is contained in:
2024-01-11 22:32:40 +03:00
parent 068934d936
commit 8bb8691f4b

View File

@@ -186,26 +186,6 @@
(end (if region (region-end) end)))
(pulse-momentary-highlight-region beg end 'region))))
(define-advice perform-replace (:around (original-fun
from-string replacements
query-flag regexp-flag
delimited-flag
&optional repeat-count
map start end
backward
region-noncontiguous-p)
activate-region)
(let ((beg (region-beginning))
(end (region-end)))
(pulse-momentary-highlight-region beg end 'region)
(apply original-fun from-string replacements
query-flag regexp-flag
delimited-flag
repeat-count
map beg end
backward
region-noncontiguous-p)))
(use-package quelpa
:demand t
:custom (quelpa-update-melpa-p nil))