bram85's Blog

bram85's Avatar Image
Tooting mostly about #emacs.
← All posts

I wrote a function to evaluate Lisp forms when an #orgmode task changes state (e.g. marked as DONE). The forms are stored as properties inside the task:

* TODO Some task
:PROPERTIES:
:ON_PROGRESS: (message "Busy!")
:ON_DONE:  (message "Done!")
:END:

Simply add the function to org-after-todo-state-change-hook.

https://apps.bram85.nl/git/bram/gists/src/commit/9545da18f7f76c2d0dd6979d13e8446b72d49d3d/gists/evaluate-code-on-task-state-change.org

#emacs

To like or reply, open original post on Emacs.ch