diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/progmodes/xref.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 8a69b07132e..397f379d434 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -209,8 +209,9 @@ or an xref backend, which is a value to be used to dispatch the generic functions.") ;; We make the etags backend the default for now, until something -;; better comes along. -(add-hook 'xref-backend-functions #'etags--xref-backend) +;; better comes along. Use APPEND so that any `add-hook' calls made +;; before this package is loaded put new items before this one. +(add-hook 'xref-backend-functions #'etags--xref-backend t) ;;;###autoload (defun xref-find-backend () |