Add a comment about xref-prompt-for-identifier

This commit is contained in:
David Morgan 2021-09-04 16:19:18 +01:00
parent 8c8117baa7
commit 945eca786b
1 changed files with 3 additions and 0 deletions

View File

@ -193,6 +193,9 @@ and file 'filename' will be opened and cursor set on line 'linenumber'"
(use-package xref
:ensure nil
:config
;; 'xref-prompt-for-identifier begins with not, so adding this prevents
;; prompting for an identifier when calling xref-find-references, unless
;; there is no value at point that can be used
(add-to-list 'xref-prompt-for-identifier 'xref-find-references t))
(provide 'init-editor)