Variable: xref-auto-jump-to-first-definition
xref-auto-jump-to-first-definition is a customizable variable defined
in xref.el.gz.
Value
nil
Documentation
If t, xref-find-definitions always jumps to the first result.
show means to show the first result's location, but keep the
focus on the Xref buffer's window.
move means to only move point to the first result.
This variable also affects the variants of xref-find-definitions,
such as xref-find-definitions-other-window.
This variable was added, or its default value changed, in xref version
1.2.0.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defcustom xref-auto-jump-to-first-definition nil
"If t, `xref-find-definitions' always jumps to the first result.
`show' means to show the first result's location, but keep the
focus on the Xref buffer's window.
`move' means to only move point to the first result.
This variable also affects the variants of `xref-find-definitions',
such as `xref-find-definitions-other-window'."
:type '(choice (const :tag "Jump" t)
(const :tag "Show" show)
(const :tag "Move point only" move)
(const :tag "No auto-jump" nil))
:version "28.1"
:package-version '(xref . "1.2.0"))