Saving the org-agenda

emacs, org-mode

Solution

I feel like I'm raining on your parade after you went to the trouble to write this code snipped (and used a piece of around advice, too!), but actually this feature is already baked into org-mode, and documented in the manual. The command you want is `org-write-agenda` (C-x C-w in an agenda buffer). See the section of the org-mode info entitled "Exporting Agenda Views."

Problem

I'd like to save the output of org-agenda to a text file, every time that the org-agenda is calculated. This way, I can use an external program (like ATNotes on windows or conky on linux), to pick up this text file and display it on my desktop. How can I do this?

Original source