save org agenda stuff when leaving

This commit is contained in:
Luj 2025-07-23 20:54:25 +02:00
parent e74da5c70a
commit 19402826a1
Signed by: luj
GPG key ID: 6FC74C847011FD83

View file

@ -875,6 +875,7 @@ To add new tasks to my agenda, I first use a capture template to generally write
"* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
("h" "Habit" entry (file "~/dev/todos/inbox.org")
"* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n")))))
(advice-add 'org-agenda-quit :before 'org-save-all-org-buffers)
#+end_src
I will then refile the tasks in inbox to any of my agenda files sections.