[Orgmode] checklist and org-after-todo-statistics-hook
From:
David Ellis
Subject:
[Orgmode] checklist and org-after-todo-statistics-hook
Date:
Thu, 25 Mar 2010 13:14:53 -0500
I have the following in my .emacs file to automatically update the todo state of a parent todo based on the number of completed children.
(defun org-summary-todo (n-done n-not-done) "Switch entry to DONE when all subentries are done, to TODO otherwise." (this is an unquoted list) (let (org-log-done org-log-states) ; turn off logging (org-todo (if (= n-not-done 0) "DONE" (if (= n-done 0) "TODO" "STARTED")))))