diff --git a/global.org b/global.org index 79c93a3..5ed5ddc 100644 --- a/global.org +++ b/global.org @@ -762,6 +762,11 @@ (setq-local org-agenda-name name))) (setq buffer-read-only nil)))) #+END_SRC +*** Automate saving + This will take care of most of the other stuff + #+BEGIN_SRC emacs-lisp + (add-hook 'auto-save-hook 'org-save-all-org-buffers) + #+END_SRC *** Reverting stuff from orgzly #+BEGIN_SRC emacs-lisp (defun org-revert-all-orgzly-buffers (&optional ALL) @@ -778,7 +783,8 @@ (with-current-buffer b buffer-file-name) (with-current-buffer b (string-match-p "orgzly" default-directory))) (pop-to-buffer-same-window b) - (revert-buffer t 'no-confirm)))))) + (revert-buffer t 'no-confirm))))) + (org-agenda-redo-all)) (define-key org-agenda-mode-map (kbd "Z") 'org-revert-all-orgzly-buffers) #+END_SRC *** Capture