From 945eca786b9c1747b57e5d6fd9969065a9ff5850 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Sat, 4 Sep 2021 16:19:18 +0100 Subject: Add a comment about xref-prompt-for-identifier --- .emacs.d/lisp/init-editor.el | 3 +++ 1 file changed, 3 insertions(+) (limited to '.emacs.d/lisp/init-editor.el') diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el index 9b8e90d..7b896fc 100644 --- a/.emacs.d/lisp/init-editor.el +++ b/.emacs.d/lisp/init-editor.el @@ -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) -- cgit 1.4.1-2-gfad0