diff --git a/global.org b/global.org index 8ddbcab..2664393 100644 --- a/global.org +++ b/global.org @@ -406,10 +406,6 @@ (add-hook 'org-mode-hook (lambda () (turn-on-auto-fill))) #+END_SRC - Revert orgzly buffers on agenda refresh - #+BEGIN_SRC emacs-lisp - (advice-add 'org-agenda-redo :before 'org-revert-all-orgzly-buffers) - #+END_SRC *** Agenda Set the canonical binding for the agenda #+BEGIN_SRC emacs-lisp @@ -465,11 +461,14 @@ (when (and (with-current-buffer b (derived-mode-p 'org-mode)) (with-current-buffer b buffer-file-name) (with-current-buffer b (string-match-p "orgzly" default-directory))) - (with-current-buffer b (print buffer-file-name)) (pop-to-buffer-same-window b) (revert-buffer t 'no-confirm))) (when (and (featurep 'org-id) org-id-track-globally) (org-id-locations-load))))) + + (advice-add 'org-agenda-redo :before 'org-revert-all-orgzly-buffers) + #+END_SRC + #+END_SRC *** Capture Set default keybinding