summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--search-conf.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/search-conf.el b/search-conf.el
index bb8297b..9868bad 100644
--- a/search-conf.el
+++ b/search-conf.el
@@ -12,6 +12,8 @@
If ARG is negative, replace backwards."
(interactive "p")
(isearch-forward-symbol-at-point arg)
+ (isearch-repeat-backward 1)
+ (isearch-exit)
(isearch-query-replace-regexp (cond ((< arg 0) arg))))
(define-key global-map (vector ?\M-s ?%) #'durand-search-replace-symbol)