From 2d8ffb701e492a7d0f354c19e828339d9d27736f Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Mon, 10 Jul 2023 22:26:19 -0400 Subject: Save org files before updating Agenda view --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index 27bb531..565b15e 100644 --- a/init.el +++ b/init.el @@ -1091,6 +1091,10 @@ :todo "NEXT") (:discard (:anything t))))))))))) +;; Save org files before updating Agenda view +(advice-add 'org-agenda-redo :before 'org-save-all-org-buffers) +(advice-add 'org-agenda-redo-all :before 'org-save-all-org-buffers) + ;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds. ;; This was taken from https://emacs.stackexchange.com/a/68767/38877 -- cgit v1.2.3