From 951024ed404763ece017f7d579cb3ae0de670912 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 29 Oct 2024 10:44:55 -0400 Subject: [PATCH] Use rg for grep, find-grep and find-grep-dired --- emacs/.emacs.d/config/init-built-ins.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs/.emacs.d/config/init-built-ins.el b/emacs/.emacs.d/config/init-built-ins.el index 9585f6b..c822fa1 100644 --- a/emacs/.emacs.d/config/init-built-ins.el +++ b/emacs/.emacs.d/config/init-built-ins.el @@ -70,4 +70,12 @@ :general ([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)