From 91848320744b7090a1adfb46d0b4475970082f95 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Wed, 12 Jul 2023 01:33:02 -0400 Subject: Revert org buffers before saving all before redoing all --- init.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 7f5364c..5dff234 100644 --- a/init.el +++ b/init.el @@ -1095,13 +1095,14 @@ (:discard (:anything t))))))))))) ;; Save org files before updating Agenda view -(defun mm/org-agenda-save-all-redo-all () +(defun mm/org-agenda-revert-redo-save-all () "" (interactive) (progn + (org-revert-all-org-buffers) (org-save-all-org-buffers) (org-agenda-redo-all))) -(define-key org-agenda-keymap (kbd "g") 'mm/org-agenda-save-all-redo-all) +(define-key org-agenda-keymap (kbd "g") 'mm/org-agenda-revert-redo-save-all) ;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds. -- cgit v1.2.3