mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -150,6 +150,9 @@ If on a:
|
|||||||
(setq context (org-element-property :parent context)
|
(setq context (org-element-property :parent context)
|
||||||
type (org-element-type context)))
|
type (org-element-type context)))
|
||||||
(pcase type
|
(pcase type
|
||||||
|
((or `citation `citation-reference)
|
||||||
|
(org-cite-follow context arg))
|
||||||
|
|
||||||
(`headline
|
(`headline
|
||||||
(cond ((memq (bound-and-true-p org-goto-map)
|
(cond ((memq (bound-and-true-p org-goto-map)
|
||||||
(current-active-maps))
|
(current-active-maps))
|
||||||
|
Reference in New Issue
Block a user