ORG-TODO: Mark parent task done if child tasks are done
This commit is contained in:
parent
934c375c34
commit
ba9ee84a3d
1 changed files with 13 additions and 0 deletions
13
config.org
13
config.org
|
|
@ -894,6 +894,19 @@ Preserve indentation in SRC blocks
|
||||||
(setq org-src-preserve-indentation t)
|
(setq org-src-preserve-indentation t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** Org-todo
|
||||||
|
|
||||||
|
When all children are done, automatically change the TODO parent entry to DONE.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defun org-summary-todo (n-done n-not-done)
|
||||||
|
"Switch entry to DONE when all subentries are done, to TODO otherwise."
|
||||||
|
(let (org-log-done org-todo-log-states) ; turn off logging
|
||||||
|
(org-todo (if (= n-not-done 0) "DONE" "TODO"))))
|
||||||
|
|
||||||
|
(add-hook 'org-after-todo-statistics-hook #'org-summary-todo)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Org bullets
|
** Org bullets
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue