Use rg for grep, find-grep and find-grep-dired

This commit is contained in:
Jeremy Dormitzer 2024-10-29 10:44:55 -04:00
parent 813d5f9e17
commit 951024ed40

View File

@ -70,4 +70,12 @@
:general :general
([remap dabbrev-expand] #'hippie-expand)) ([remap dabbrev-expand] #'hippie-expand))
(use-package grep
:straight (:type built-in)
:if (executable-find "rg")
:config
(setq grep-program "rg")
:custom
(grep-command "rg --color=always --with-filename --line-number --null -e "))
(provide 'init-built-ins) (provide 'init-built-ins)