Set `grep-command' option also to using ugrep when feasible
This commit is contained in:
parent
38a455c14b
commit
74e69300a8
@ -1648,14 +1648,15 @@ implementation of the suggestions on those pages.
|
|||||||
"--null"
|
"--null"
|
||||||
"--recursive"
|
"--recursive"
|
||||||
"--regexp=<R>")
|
"--regexp=<R>")
|
||||||
" ")))
|
" "))
|
||||||
|
(setopt grep-command "ugrep --color=always --null -nH -e "))
|
||||||
(with-eval-after-load 'xref
|
(with-eval-after-load 'xref
|
||||||
(setopt
|
(setopt
|
||||||
xref-search-program 'ugrep
|
xref-search-program 'ugrep
|
||||||
xref-search-program-alist
|
xref-search-program-alist
|
||||||
`((grep . "xargs -0 grep <C> --null -snHE -e <R>")
|
`((grep . "xargs -0 grep <C> --null -snHE -e <R>")
|
||||||
(ripgrep . ,(concat "xargs -0 rg <C> --null -nH"
|
(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>")))))
|
(ugrep . "xargs -0 ugrep <C> --null -ns -e <R>")))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user