Add SCHEDULED support to +org/dwim-at-point

This commit is contained in:
Henrik Lissner 2019-06-25 20:29:51 +02:00
parent 4f5f51237e
commit 4ecf6c9414
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -87,14 +87,15 @@ If on a:
(member "TOC" (org-get-tags)))
(toc-org-insert-toc)
(message "Updating table of contents"))
((org-element-property :todo-type context)
((string= "ARCHIVE" (car-safe (org-get-tags)))
(org-force-cycle-archived))
((or (org-element-property :todo-type context)
(org-element-property :scheduled 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)))
'todo)
'done)))
((string= "ARCHIVE" (car-safe (org-get-tags)))
(org-force-cycle-archived))
(t
(+org/refresh-inline-images)
(org-remove-latex-fragment-image-overlays)