about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-editor.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-09-04 16:19:18 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-09-04 16:19:18 +0100
commit945eca786b9c1747b57e5d6fd9969065a9ff5850 (patch)
treebb21880dc927454ecc925d5be17f25760c093c2d /.emacs.d/lisp/init-editor.el
parent8c8117baa77e096279a589052ef65ea4e5a9c2d1 (diff)
downloaddotfiles-945eca786b9c1747b57e5d6fd9969065a9ff5850.tar.gz
Add a comment about xref-prompt-for-identifier
Diffstat (limited to '.emacs.d/lisp/init-editor.el')
-rw-r--r--.emacs.d/lisp/init-editor.el3
1 files changed, 3 insertions, 0 deletions
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)