aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/init.el b/init.el
index f3624f8..ff42d30 100644
--- a/init.el
+++ b/init.el
@@ -1094,8 +1094,13 @@
1094 (:discard (:anything t))))))))))) 1094 (:discard (:anything t)))))))))))
1095 1095
1096;; Save org files before updating Agenda view 1096;; Save org files before updating Agenda view
1097(advice-add 'org-agenda-redo :before 'org-save-all-org-buffers) 1097(defun mm/org-agenda-save-all-redo-all ()
1098(advice-add 'org-agenda-redo-all :before 'org-save-all-org-buffers) 1098 ""
1099 (interactive)
1100 (progn
1101 (org-save-all-org-buffers)
1102 (org-agenda-redo-all)))
1103(define-key org-agenda-keymap (kbd "g") 'mm/org-agenda-save-all-redo-all)
1099 1104
1100 1105
1101;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds. 1106;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds.