diff options
-rw-r--r-- | init.el | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1091,6 +1091,10 @@ | |||
1091 | :todo "NEXT") | 1091 | :todo "NEXT") |
1092 | (:discard (:anything t))))))))))) | 1092 | (:discard (:anything t))))))))))) |
1093 | 1093 | ||
1094 | ;; Save org files before updating Agenda view | ||
1095 | (advice-add 'org-agenda-redo :before 'org-save-all-org-buffers) | ||
1096 | (advice-add 'org-agenda-redo-all :before 'org-save-all-org-buffers) | ||
1097 | |||
1094 | 1098 | ||
1095 | ;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds. | 1099 | ;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds. |
1096 | ;; This was taken from https://emacs.stackexchange.com/a/68767/38877 | 1100 | ;; This was taken from https://emacs.stackexchange.com/a/68767/38877 |