summaryrefslogtreecommitdiff
path: root/basic.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-12-26 20:44:41 +0800
committerJSDurand <mmemmew@gmail.com>2022-12-30 12:32:10 +0800
commit17043258090a6b63516378e4bf5a5e2ba351870c (patch)
tree2f43e20754aa78df8ac7d7f1d851bceb3bdbcc52 /basic.el
parent528d21753fd3c336263c59280cfe0f940afcb76d (diff)
basic: use ripgrep for grep
* basic.el (xref-search-program): Use ripgrep for grep. This is supposed to be faster than the built-in grep on macOS.
Diffstat (limited to 'basic.el')
-rw-r--r--basic.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/basic.el b/basic.el
index 6e4dc15..70505dc 100644
--- a/basic.el
+++ b/basic.el
@@ -613,6 +613,10 @@ buffers that I do not want to kill automatically.")
(advice-add #'save-buffers-kill-terminal :around #'durand-confirm-execute)
+;;; Use ripgrep for xref
+
+(setq xref-search-program 'ripgrep)
+
;;; Package management
;;;###autoload