Skip to content

Instantly share code, notes, and snippets.

@ieure
Forked from plathrop/pdl-org.el
Created January 4, 2012 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ieure/1561507 to your computer and use it in GitHub Desktop.
Save ieure/1561507 to your computer and use it in GitHub Desktop.
(defun pdl-agenda ()
"Switch to my agenda, regenerating it in the process."
(interactive)
(save-selected-window
(pop-to-buffer
(prog1 org-agenda-buffer-name
(if (get-buffer org-agenda-buffer-name)
(org-agenda-redo)
(org-agenda nil "a")
(org-agenda-day-view))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment