diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-07-10 22:26:19 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-07-10 22:26:19 -0400 |
commit | 2d8ffb701e492a7d0f354c19e828339d9d27736f (patch) | |
tree | 1beae990562d25daa6ac675b10a8f15d315d58e2 | |
parent | Check parens before saving Emacs Lisp files (diff) | |
download | mmosmacs-2d8ffb701e492a7d0f354c19e828339d9d27736f.tar.gz mmosmacs-2d8ffb701e492a7d0f354c19e828339d9d27736f.tar.bz2 mmosmacs-2d8ffb701e492a7d0f354c19e828339d9d27736f.zip |
Save org files before updating Agenda view
-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 |