aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el5
1 files 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 @@
1095 (:discard (:anything t))))))))))) 1095 (:discard (:anything t)))))))))))
1096 1096
1097;; Save org files before updating Agenda view 1097;; Save org files before updating Agenda view
1098(defun mm/org-agenda-save-all-redo-all () 1098(defun mm/org-agenda-revert-redo-save-all ()
1099 "" 1099 ""
1100 (interactive) 1100 (interactive)
1101 (progn 1101 (progn
1102 (org-revert-all-org-buffers)
1102 (org-save-all-org-buffers) 1103 (org-save-all-org-buffers)
1103 (org-agenda-redo-all))) 1104 (org-agenda-redo-all)))
1104(define-key org-agenda-keymap (kbd "g") 'mm/org-agenda-save-all-redo-all) 1105(define-key org-agenda-keymap (kbd "g") 'mm/org-agenda-revert-redo-save-all)
1105 1106
1106 1107
1107;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds. 1108;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds.