6197 comments
2357 subscribers
Follow me on Twitter (@sachac)
Subscribe! Feed reader E-mail

Publishing my Org agenda to my blog

Some people like reading my task list.

No, I don’t know why, either. =)

But it’s up again, just in case you want to see it. This one is based
on Org-mode for Emacs, so it’s not the same task list that used to
show up on my Planner wiki.

Expect this to change a lot as I figure out how I want it to fit in.
The downside of using WordPress as my front-end is that it looks like
it’s going to be difficult to get the kind of day view I have with my
Planner version. How
do I get it to display future pages?

I may end up writing yet another layer on top of this… =(

Anyway, here’s my highly idiosyncratic config, just in case you want
to get started hacking this onto your system:

(defvar sacha/org-publish-agenda-directory "~/notebook/org/" "*Directory to save the published agenda to.")
(org-defkey org-agenda-mode-map  "p" 'sacha/org-publish-agenda)
(defun sacha/org-publish-agenda ()
  "Copy the agenda buffer to a file in `sacha/org-publish-agenda-directory'."
  (interactive)
  ;; Take the entire contents of the agenda and dump it into a text file labeled with the date.
  (let ((agenda (with-current-buffer org-agenda-buffer-name
                  (unless org-agenda-show-log (org-agenda-log-mode))
                  (buffer-string)))
        (filename (format-time-string "%Y-%m-%d.txt" (if org-starting-day (calendar-time-from-absolute (1+ org-starting-day) 0)
                                                       (current-time)))))
    (with-temp-buffer
      (insert agenda)
      (write-file (expand-file-name filename
                                    sacha/org-publish-agenda-directory)))))

(defun sacha/org-publish-agenda-today (interactive)
  "Publish today's agenda. Suitable for ~/.emacs, we hope."
  (let ((entry (assoc "a" org-agenda-custom-commands)))
    (if entry
        (org-run-agenda-series (nth 1 entry) (cddr entry))
      (call-interactively 'org-agenda-list))
  (sacha/org-publish-agenda)))

On Technorati: , ,

Random Emacs symbol: hack-local-variables – Function: Parse and put into effect this buffer’s local variables spec.

Short URL: http://sachachua.com/blog/p/4536

On This Day...

  • 2012: Decision: No Illustrator CS6 for now — I wanted to like Adobe Illustrator CS6. I really did. I’ve been looking for a vector drawing tool that could [...]
  • 2011: Weekly review: Week ending December 23, 2011 — We’ve been enjoying a quiet holiday weekend with plenty of long walks and cooking. There are seventeen containers of beef [...]
  • 2010: Weekly review: Week ending December 24, 2010 — From last week’s plans Work [X] Work on Project M and Project S [-] Post year-end reflections [...]
  • 2009: Getting ready for a long trip — My flight is at 1 PM tomorrow. I’ve checked and re-checked my luggage weight, reviewed my list of things to [...]
  • 2009: Gifts — Christmas gift-giving tends to be a little stressful for me. My defence used to be that holidays shouldn’t be about [...]
  • 2008: 2008: Annus Mirabilis — IMG { margin-left: 10px; margin-right: 10px; } P { clear: both } What an incredible year! We took two trips to Manila: [...]
  • 2007: Not quite the same
  • 2007: Some of my favorite quotes — “If you want to build a ship, don’t drum up people together to collect wood and don’t assign them tasks [...]
  • 2007: Get a grip on your tasks — Most time management books will tell you to think of your three- to five-year goals, come up with projects, and then [...]
  • 2006: Also, Freeciv is darn cool — Not the kind of thing that I can easily play on my computer, but I think we just might enjoy sinking [...]
  • 2006: Water — It’s easier to drink plenty of water when you’re sweating rivers of it. =) Random Emacs symbol: occur-mode-map – Variable: Keymap [...]
  • 2006: Home; between two worlds — Prophet of God, in quest of the uttermost, long have you searched the distances for your ship. And now your ship has [...]
  • 2006: Carefully unfolding — Maybe I don’t have to highlight it explicitly. Maybe I can just keep sharing good stories. Maybe I can just choose [...]
  • 2006: How to tell when your parents are addicted to the Internet — I think my parents spend more time on the Internet than I am. Seriously. My parents are hooked on these online [...]
  • 2006: I am -so- blogging that — My mom at the breakfast table: “Sacha, do you remember that conversation between Kathy and your dad last night?” She remembered wanting [...]
  • 2006: Quiet — I’m quieter than I remembered, than I hoped. The stories I most want to tell, the unbloggable things I still need [...]
  • 2005: Learning photography — My dad’s been teaching me how to shoot. =) Check out my pictures at http://www.flickr.com/photos/sachac ! Covering all the bases Meow On [...]
  • 2005: Catching up with mail — Over a thousand messages. Hooray for Gnus and adaptive scoring! Happy holidays, folks! =) It’s good to be home.
  • 2005: Social bookmarking in the Philippines — Check out http://www.oks.ph , a Philippine social news site along the lines of digg.com . Stories are bookmarked and voted on [...]
  • 2004: smbmount — sudo mount -t smbfs -o codepage=cp932,iocharset=utf8 //172.17.1.1/common\ _files mnt smbmount japanese codepage conversion failure