Function: evil-goto-definition
evil-goto-definition is an interactive and byte-compiled function
defined in evil-commands.el.
Signature
(evil-goto-definition)
Documentation
Go to definition or first occurrence of symbol under point.
See also evil-goto-definition-functions.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-motion evil-goto-definition ()
"Go to definition or first occurrence of symbol under point.
See also `evil-goto-definition-functions'."
:jump t
:type exclusive
(let* ((match (evil--find-thing t 'symbol))
(string (car match))
(position (cdr match)))
(if (null string)
(user-error "No symbol under cursor")
(setq isearch-forward t)
(run-hook-with-args-until-success 'evil-goto-definition-functions
string position))))