?

Log in

No account? Create an account
Overloading the Machine -- Day [entries|friends|calendar]
johnsu01

[ website | wjsullivan.net ]
[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

Listing GTD contexts with Planner [14 Mar 2006|02:41am]

This is just a quick hack to insert links at point in a planner buffer to all the planner pages whose names start with '@'. dydimustk on #emacs requested something like this, seems like it would be useful for the Getting Things Done types, since '@' is often used to signify a context like @Home or @Work. Automating it is a little more complicated. Maybe later.

(defun dyd/planner-list-contexts ()
  "Insert links at point for all planner pages whose names start with @."
  (interactive)
  (let* ((planner-list (muse-project-file-alist planner-project))
         (contexts 
          (delq nil 
                (mapcar
                 (lambda (page)
                   (if (string-match "^@" (car page)) (car page)))
                 planner-list))))
    (mapc
     (lambda (context)
       (insert (planner-make-link context) "\n"))
     contexts)))
post comment

Certifyr [14 Mar 2006|06:03pm]

Every web designer should make sure their new sites pass the Web 2.0 Certification test.

via webdesign

post comment

navigation
[ viewing | March 14th, 2006 ]
[ go | previous day|next day ]