diff --git a/modules/tools/lookup/config.el b/modules/tools/lookup/config.el index 59a5e93c4..35179e360 100644 --- a/modules/tools/lookup/config.el +++ b/modules/tools/lookup/config.el @@ -141,7 +141,7 @@ Dictionary.app behind the scenes to get definitions.") (use-package! helm-xref :when (featurep! :completion helm) - :config (setq xref-show-xrefs-function #'helm-xref-show-xrefs))) + :config (setq xref-show-xrefs-function (if EMACS27+ #'helm-xref-show-xrefs-27 #'helm-xref-show-xrefs)))) ;;