Set `grep-command' option also to using ugrep when feasible

This commit is contained in:
Gerard Vermeulen 2023-05-18 16:02:51 +02:00
parent 38a455c14b
commit 74e69300a8
1 changed files with 3 additions and 2 deletions

View File

@ -1648,14 +1648,15 @@ implementation of the suggestions on those pages.
"--null"
"--recursive"
"--regexp=<R>")
" ")))
" "))
(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 <C> --null -snHE -e <R>")
(ripgrep . ,(concat "xargs -0 rg <C> --null -nH"
" --no-heading --no-messages -g '!*/' -e <R>"))
" --no-heading --no-messages -g '!*/' -e <R>"))
(ugrep . "xargs -0 ugrep <C> --null -ns -e <R>")))))
#+end_src