diff options
Diffstat (limited to 'search-conf.el')
-rw-r--r-- | search-conf.el | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/search-conf.el b/search-conf.el new file mode 100644 index 0000000..bb8297b --- /dev/null +++ b/search-conf.el @@ -0,0 +1,25 @@ +;;; search-conf.el --- My configurations for searching -*- lexical-binding: t; -*- + +(setq search-whitespace-regexp ".*?") +(setq isearch-lax-whitespace t) +(setq isearch-lazy-count t) +(setq isearch-allow-scroll 'unlimited) + +;;;###autoload +(defun durand-search-replace-symbol (&optional arg) + "Search the symbol at point and query-replace. + +If ARG is negative, replace backwards." + (interactive "p") + (isearch-forward-symbol-at-point arg) + (isearch-query-replace-regexp (cond ((< arg 0) arg)))) + +(define-key global-map (vector ?\M-s ?%) #'durand-search-replace-symbol) + + + + + +(provide 'search-conf) + +;;; search-conf.el ends here |