From: "Alan E. Davis" <lngndvs@gmail.com>
To: "Ross A. Laird" <ross@rosslaird.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Displaying your Org agenda after idle time
Date: Tue, 23 Mar 2010 05:15:43 +0000 [thread overview]
Message-ID: <7bef1f891003222215s636da415mc09cd1be69f022a4@mail.gmail.com> (raw)
In-Reply-To: <8739ztbb7j.fsf@rosslaird.com>
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 <ross@rosslaird.com> wrote:
> John Wiegley <jwiegley@gmail.com> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
next prev parent reply other threads:[~2010-03-23 5:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-18 9:30 Displaying your Org agenda after idle time John Wiegley
2010-03-18 18:17 ` Jason Dunsmore
2010-03-21 21:45 ` Ross A. Laird
2010-03-23 5:15 ` Alan E. Davis [this message]
2010-03-23 7:38 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7bef1f891003222215s636da415mc09cd1be69f022a4@mail.gmail.com \
--to=lngndvs@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ross@rosslaird.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.