From 3507b31aad2b71af2e2e9e4d734f9292f8a2b089 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Mon, 14 Oct 2024 16:23:20 +0100 Subject: Rename include-all to deadgrep--include-all --- .emacs.d/lisp/init-search.el | 6 +++--- 1 file 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 -- cgit 1.4.1-2-gfad0