summaryrefslogtreecommitdiff
path: root/search-conf.el
diff options
context:
space:
mode:
Diffstat (limited to 'search-conf.el')
-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)