emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: Displaying your Org agenda after idle time


From: Alan E. Davis
Subject: Re: [Orgmode] Re: Displaying your Org agenda after idle time
Date: Tue, 23 Mar 2010 05:15:43 +0000

I like this also.  It would be fantastic if the agenda were displayed,
as it is now, while a simple keystroke would return one to the point
he was at when the function was called.   I might one day have time to
try to figure out how to do this, not saying I would be able to do so
easily.

Alan Davis

On Sun, Mar 21, 2010 at 9:45 PM, Ross A. Laird <address@hidden> wrote:
> John Wiegley <address@hidden> writes:
>
>> 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.
>>
>> John
>>
>> (defun jump-to-org-agenda ()
>>   (interactive)
>>   (let ((buf (get-buffer "*Org Agenda*"))
>>       wind)
>>     (if buf
>>       (if (setq wind (get-buffer-window buf))
>>           (select-window wind)
>>         (if (called-interactively-p)
>>             (progn
>>               (select-window (display-buffer buf t t))
>>               (org-fit-window-to-buffer)
>>               ;; (org-agenda-redo)
>>               )
>>           (with-selected-window (display-buffer buf)
>>             (org-fit-window-to-buffer)
>>             ;; (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)
>>
>
> This is fantastically useful.
> Thanks very much!
>
> Ross
>
> --
> Ross A. Laird, PhD
> www.rosslaird.com
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>




reply via email to

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