Compare commits
2 commits
0e9ab89117
...
3ad176fbf9
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ad176fbf9 | |||
| 6aaae92c53 |
2 changed files with 19 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
|
||||||
|
|
||||||
|
*** Mark parent entry as DONE when children are 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
|
||||||
|
|
|
||||||
6
snippets/org-mode/filetags
Normal file
6
snippets/org-mode/filetags
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Filetags
|
||||||
|
# key: ft
|
||||||
|
# --
|
||||||
|
|
||||||
|
#+FILETAGS: :$1:
|
||||||
Loading…
Add table
Add a link
Reference in a new issue