about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-10-14 16:23:20 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-10-14 16:23:20 +0100
commit3507b31aad2b71af2e2e9e4d734f9292f8a2b089 (patch)
tree1aa6750152ec7ad95c435e839562636213a99562
parent4ee504a0dafee2de55267bc347e8ee19d5efe425 (diff)
downloaddotfiles-3507b31aad2b71af2e2e9e4d734f9292f8a2b089.tar.gz
Rename include-all to deadgrep--include-all
-rw-r--r--.emacs.d/lisp/init-search.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/.emacs.d/lisp/init-search.el b/.emacs.d/lisp/init-search.el
index 39b3d79..eef85ec 100644
--- a/.emacs.d/lisp/init-search.el
+++ b/.emacs.d/lisp/init-search.el
@@ -160,15 +160,15 @@
   (defun deadgrep-current-directory (search-term)
     (interactive (list (deadgrep--read-search-term)))
     (deadgrep search-term (file-name-directory buffer-file-name)))
-  (defvar include-all nil)
+  (defvar deadgrep--include-all nil)
   (defun deadgrep--include-all-advice (rg-args)
-    (if include-all
+    (if deadgrep--include-all
         (push "-uuuLz" rg-args)
       rg-args))
   (advice-add 'deadgrep--arguments :filter-return #'deadgrep--include-all-advice)
   (defun deadgrep-all (search-term)
     (interactive (list (deadgrep--read-search-term)))
-    (let ((include-all t))
+    (let ((deadgrep--include-all t))
       (deadgrep search-term)))
   :hook (deadgrep-mode . next-error-follow-minor-mode)
   :bind