Compare commits

...

2 commits

2 changed files with 19 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: Filetags
# key: ft
# --
#+FILETAGS: :$1: