mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #3254: RET not invoking org-goto-ret in org-goto buffer
This commit is contained in:
@ -167,7 +167,9 @@ If on a:
|
|||||||
type (org-element-type context)))
|
type (org-element-type context)))
|
||||||
(pcase type
|
(pcase type
|
||||||
(`headline
|
(`headline
|
||||||
(cond ((and (fboundp 'toc-org-insert-toc)
|
(cond ((memq (bound-and-true-p org-goto-map) (current-active-maps))
|
||||||
|
(org-goto-ret))
|
||||||
|
((and (fboundp 'toc-org-insert-toc)
|
||||||
(member "TOC" (org-get-tags)))
|
(member "TOC" (org-get-tags)))
|
||||||
(toc-org-insert-toc)
|
(toc-org-insert-toc)
|
||||||
(message "Updating table of contents"))
|
(message "Updating table of contents"))
|
||||||
|
Reference in New Issue
Block a user