feat(org): follow citations on +org/dwim-at-point

As discussed in #5290, pressing RET on citations (or citation
references) will now follow them.

Ref: #5290
This commit is contained in:
Henrik Lissner 2021-11-25 01:15:15 +01:00
parent 3d28ecf07a
commit 798df6bc9e

View file

@ -150,6 +150,9 @@ If on a:
(setq context (org-element-property :parent context)
type (org-element-type context)))
(pcase type
((or `citation `citation-reference)
(org-cite-follow context arg))
(`headline
(cond ((memq (bound-and-true-p org-goto-map)
(current-active-maps))