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:06:18 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-09-04 16:06:18 +0100
commit4993f88d433ba1ee80cb0865c044768181b577f8 (patch)
treefbac162034a2620bb8c1840472dcbb1de4332548 /.emacs.d/lisp/init-editor.el
parent95a541923b74f42d8173e41ee09abc5a6a42c4ff (diff)
downloaddotfiles-4993f88d433ba1ee80cb0865c044768181b577f8.tar.gz
Don't prompt for an identifier when calling xref-find-references
Diffstat (limited to '.emacs.d/lisp/init-editor.el')
-rw-r--r--.emacs.d/lisp/init-editor.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el
index 1946b46..9b8e90d 100644
--- a/.emacs.d/lisp/init-editor.el
+++ b/.emacs.d/lisp/init-editor.el
@@ -190,5 +190,10 @@ and file 'filename' will be opened and cursor set on line 'linenumber'"
   :bind
   ("C-c ." . operate-on-number-at-point))
 
+(use-package xref
+  :ensure nil
+  :config
+  (add-to-list 'xref-prompt-for-identifier 'xref-find-references t))
+
 (provide 'init-editor)
 ;;; init-editor.el ends here