about summary refs log tree commit diff stats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-10-18 07:52:55 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-10-18 07:52:55 +0100
commita03615fcd27456910f5db1e523322feb3a14f82e (patch)
treec50f2ac9d128ec2d00458c998a2f97e1d9acbed5 /.emacs.d/lisp
parente005caac2e447d7108e962fdaf8c0daea0a09f47 (diff)
downloaddotfiles-a03615fcd27456910f5db1e523322feb3a14f82e.tar.gz
Make sure xref settings are not overwritten
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-editor.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el
index d10b384..b748c31 100644
--- a/.emacs.d/lisp/init-editor.el
+++ b/.emacs.d/lisp/init-editor.el
@@ -163,6 +163,10 @@
   (and (featurep 'xref) (unload-feature 'xref t))
   ;; Make sure xref-find-definitions doesn't override this embark binding (unless https://github.com/oantolin/embark/issues/732 can be fixed)
   (bind-key "M-." 'embark-dwim)
+  ;; Make sure these aren't overwritten
+  (setq xref-search-program 'ripgrep
+        xref-show-xrefs-function #'consult-xref
+        xref-show-definitions-function #'consult-xref)
   (elpaca--continue-build e))
 
 (defun +elpaca-xref-build-steps ()