diff --git a/workflows/org-custom.el b/workflows/org-custom.el index c612fdd..d7c4eff 100644 --- a/workflows/org-custom.el +++ b/workflows/org-custom.el @@ -74,6 +74,17 @@ org-M-RET-may-split-line '((item . nil)) ;; https://irreal.org/blog/?p=6297 ) +(defun theurgy-refresh-org-files () + "Alternative to revert-all-org-buffers, which is a bit more intelligent." + (interactive) + (dolist (f org-agenda-files) + (with-current-buffer (find-file-noselect f t) + (revert-buffer t t)))) + +(theurgy-refresh-org-files) + +(add-hook 'before-make-frame-hook #'theurgy-refresh-org-files) + ;; Org modern and other interface enhancements (use-package org-modern :hook ((org-mode . org-modern-mode)