[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Displaying your Org agenda after idle time

From: John Wiegley
Subject: [Orgmode] Displaying your Org agenda after idle time
Date: Thu, 18 Mar 2010 05:30:34 -0400

I have the following snippet in my .emacs file, which I find very useful.  
Basically what it does is that if I don't touch my Emacs for 5 minutes, it 
displays the current agenda.  This keeps my tasks "always in mind" whenever I 
come back to Emacs after doing something else, whereas before I had a tendency 
to forget that it was there.


(defun jump-to-org-agenda ()
  (let ((buf (get-buffer "*Org Agenda*"))
    (if buf
        (if (setq wind (get-buffer-window buf))
            (select-window wind)
          (if (called-interactively-p)
                (select-window (display-buffer buf t t))
                ;; (org-agenda-redo)
            (with-selected-window (display-buffer buf)
              ;; (org-agenda-redo)
      (call-interactively 'org-agenda-list)))
  ;;(let ((buf (get-buffer "*Calendar*")))
  ;;  (unless (get-buffer-window buf)
  ;;    (org-agenda-goto-calendar)))

(run-with-idle-timer 300 t 'jump-to-org-agenda)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]