commit 4aa951089b7f385f7255e4123136ab01950cb209
parent 36a28225c7513b908525587b58e62e7c4303b2c5
Author: Vincent Demeester <vincent@sbr.pm>
Date: Tue, 7 May 2024 16:40:35 +0200
tools/emacs: use consult-xref for xref
Because it's better 🙃
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/emacs/config/config-completion.el b/tools/emacs/config/config-completion.el
@@ -18,6 +18,11 @@
("M-s M-y" . consult-yank-pop)
("M-s M-s" . consult-outline))
+(use-package consult-xref
+ :config
+ (setq xref-show-xrefs-function #'consult-xref
+ xref-show-definitions-function #'consult-xref))
+
;; https://github.com/oantolin/embark/blob/master/embark-consult.el
(use-package embark
:unless noninteractive