diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-09-20 11:14:12 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-09-20 11:14:12 +0000 |
commit | f260d68d40aa5438470aac2fb5fee297e82507ae (patch) | |
tree | 693cb46e57bba7e244c7536d28531b3e9887b486 /.emacs.d/lisp/init-minibuffer.el | |
parent | b9465603d2a754fbd1355c0e8d9e25471f477f68 (diff) | |
download | dotfiles-f260d68d40aa5438470aac2fb5fee297e82507ae.tar.gz |
Ensure consult-xref functionality is initialised
Diffstat (limited to '.emacs.d/lisp/init-minibuffer.el')
-rw-r--r-- | .emacs.d/lisp/init-minibuffer.el | 9 |
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) |