How to automatically save all org files after marking a repeating item as DONE in the org agenda? I'm using this to automatically save my org buffers after every change to TODO status:
(advice-add 'org-todo :after (η #'org-save-all-org-buffers))
(Where η
ignores all arguments and calls the given function.)
This however doesn't work for repeating tasks, scheduled like this:
SCHEDULED: <2016-04-22 Fri +1d>
The org document is still modified after changing the state from TODO to DONE. I've tried a number of hook variables and methods, all without success.
org-trigger-hook
instead of using advice.org-save-all-buffers
unconditionally inorg-trigger-hook
.