Cleanup org agenda refresh

master
Jacopo De Simoi 6 years ago
parent af7d0827b3
commit 3c4f257445
  1. 8
      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

Loading…
Cancel
Save