about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-minibuffer.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el
index c0b6ee3..47bedeb 100644
--- a/.emacs.d/lisp/init-minibuffer.el
+++ b/.emacs.d/lisp/init-minibuffer.el
@@ -245,6 +245,11 @@ DEFS is a plist associating completion categories to commands."
                ("M-P" . consult-toggle-preview)
                ("C-x C-M-x" . remove-leading-hash)))
 
+  :init
+  ;; Use Consult to select xref locations with preview
+  (setq xref-show-xrefs-function #'consult-xref
+        xref-show-definitions-function #'consult-xref)
+
   :config
 
   ;; Optionally configure the register formatting. This improves the register
@@ -257,10 +262,6 @@ DEFS is a plist associating completion categories to commands."
   ;; This adds thin lines, sorting and hides the mode line of the window.
   (advice-add #'register-preview :override #'consult-register-window)
 
-  ;; Use Consult to select xref locations with preview
-  (setq xref-show-xrefs-function #'consult-xref
-        xref-show-definitions-function #'consult-xref)
-
   (add-to-list 'consult-mode-histories '(cider-repl-mode cider-repl-input-history))
 
   (defun consult-ripgrep-auto-preview (&optional dir initial)