From 74e69300a80733b3b541ad6c5351616c10b1d3f3 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Thu, 18 May 2023 16:02:51 +0200 Subject: [PATCH] Set `grep-command' option also to using ugrep when feasible --- README.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 32eca2d..4300a51 100644 --- a/README.org +++ b/README.org @@ -1648,14 +1648,15 @@ implementation of the suggestions on those pages. "--null" "--recursive" "--regexp=") - " "))) + " ")) + (setopt grep-command "ugrep --color=always --null -nH -e ")) (with-eval-after-load 'xref (setopt xref-search-program 'ugrep xref-search-program-alist `((grep . "xargs -0 grep --null -snHE -e ") (ripgrep . ,(concat "xargs -0 rg --null -nH" - " --no-heading --no-messages -g '!*/' -e ")) + " --no-heading --no-messages -g '!*/' -e ")) (ugrep . "xargs -0 ugrep --null -ns -e "))))) #+end_src