When composing my weekly schedule, it feels somewhat jarring to have to switch to the agenda buffer in the other frame and rebuild, just to see how things align. Adding org-agenda-redo
to after-save-hook
doesn't seem to work. Having the hook call (org-agenda-redo t)
, which should rebuild ALL agenda buffers, doesn't seem to work either.
Here's a sample of the code I'm using:
(defun org-agenda-redo-all ()
"Rebuild all agenda buffers"
(org-agenda-redo t))
(add-hook 'org-mode-hook
(lambda()
(add-hook 'after-save-hook 'org-agenda-redo-all nil 'make-it-local)))
According to the *Messages*
buffer, org-agenda-redo
appears to be called:
Saving file /home/mkaito/notes/agenda.org...
Wrote /home/mkaito/notes/agenda.org
Rebuilding agenda buffer...done
But the agenda buffer in the other frame is not updated.