lang/org: RET on TOC will now refresh the TOC
This commit is contained in:
parent
9ed9daa79f
commit
8a57d9b5fd
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,11 @@ If on a:
|
|||
(org-toggle-checkbox (if (equal match "[ ]") '(16)))))
|
||||
|
||||
(`headline
|
||||
(cond ((org-element-property :todo-type context)
|
||||
(cond ((and (fboundp 'toc-org-insert-toc)
|
||||
(member "TOC" (org-get-tags)))
|
||||
(toc-org-insert-toc)
|
||||
(message "Updating table of contents"))
|
||||
((org-element-property :todo-type context)
|
||||
(org-todo
|
||||
(if (eq (org-element-property :todo-type context) 'done)
|
||||
(or (car (+org-get-todo-keywords-for (org-element-property :todo-keyword context)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue