diff options
author | JSDurand <mmemmew@gmail.com> | 2021-02-28 14:29:34 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-02-28 14:29:34 +0800 |
commit | d28e259e0b5b736a0eb43e37410de5134e602589 (patch) | |
tree | 192d5d1181151e992443c9ca862bcfb4da4ac1cd /search-conf.el | |
parent | eae7419bd1398991ed91c317ccffc32781510e5d (diff) |
(search-conf.el) fix the function to replace symbol at point
* search-conf.el (durand-search-replace-symbol): Now this will also
account for the symbol at point, while previously that will be
skipped.
Diffstat (limited to 'search-conf.el')
-rw-r--r-- | search-conf.el | 2 |
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) |