summaryrefslogtreecommitdiff
path: root/lisp/progmodes/prog-mode.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2021-08-21 20:16:41 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2021-08-21 20:27:28 +0200
commitc28d4c995e7a08b4b403f4215d9ac7ac7728731b (patch)
treee1addf8c980b2b7f0b00dd0e8018958cf7d32aec /lisp/progmodes/prog-mode.el
parent9715feaed43c0efc536c90db53d91bc521ef5e41 (diff)
downloademacs-c28d4c995e7a08b4b403f4215d9ac7ac7728731b.tar.gz
emacs-c28d4c995e7a08b4b403f4215d9ac7ac7728731b.tar.bz2
emacs-c28d4c995e7a08b4b403f4215d9ac7ac7728731b.zip
; Load xref when needed (not all functions are autoloaded)
Diffstat (limited to 'lisp/progmodes/prog-mode.el')
-rw-r--r--lisp/progmodes/prog-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el
index 3babbdc6b42..f75a3039d3e 100644
--- a/lisp/progmodes/prog-mode.el
+++ b/lisp/progmodes/prog-mode.el
@@ -44,6 +44,7 @@
prettify-symbols-mode))
(defun prog-context-menu (menu)
+ (require 'xref)
(define-key-after menu [prog-separator] menu-bar-separator
'mark-whole-buffer)
(define-key-after menu [xref-find-def]