diff options
-rw-r--r-- | init.el | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -1094,16 +1094,6 @@ | |||
1094 | :todo "NEXT") | 1094 | :todo "NEXT") |
1095 | (:discard (:anything t))))))))))) | 1095 | (:discard (:anything t))))))))))) |
1096 | 1096 | ||
1097 | ;; Save org files before updating Agenda view | ||
1098 | (defun mm/org-agenda-revert-redo-save-all () | ||
1099 | "Revert then save all `org-mode' buffers, then `org-agenda-redo-all'." | ||
1100 | (interactive) | ||
1101 | (progn | ||
1102 | (org-revert-all-org-buffers) | ||
1103 | (org-save-all-org-buffers) | ||
1104 | (org-agenda-redo-all))) | ||
1105 | (define-key org-agenda-keymap (kbd "g") 'mm/org-agenda-revert-redo-save-all) | ||
1106 | |||
1107 | 1097 | ||
1108 | ;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds. | 1098 | ;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds. |
1109 | ;; This was taken from https://emacs.stackexchange.com/a/68767/38877 | 1099 | ;; This was taken from https://emacs.stackexchange.com/a/68767/38877 |