Use ripgrep if possible with emacs

This commit is contained in:
Andreas Zweili 2023-07-23 22:16:05 +02:00
parent 6a9ae427a9
commit 984746ef5c
1 changed files with 6 additions and 0 deletions

View File

@ -56,3 +56,9 @@
;; switch focus to man page
(setq man-notify-method t)
;; use ripgrep or rg if possible
(setq xref-search-program (cond ((or (executable-find "ripgrep")
(executable-find "rg")) 'ripgrep)
((executable-find "ugrep") 'ugrep) (t
'grep)))