diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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. |