From: ross@rosslaird.com (Ross A. Laird)
To: emacs-orgmode@gnu.org
Subject: Re: Displaying your Org agenda after idle time
Date: Sun, 21 Mar 2010 14:45:36 -0700 [thread overview]
Message-ID: <8739ztbb7j.fsf@rosslaird.com> (raw)
In-Reply-To: 55590EA7-C744-44E5-909F-755F0BBE452D@gmail.com
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
next prev parent reply other threads:[~2010-03-21 21:50 UTC|newest]
Thread overview: 6+ 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 [this message]
2010-03-23 5:15 ` Alan E. Davis
2010-03-23 7:38 ` Carsten Dominik
-- strict thread matches above, loose matches on Subject: below --
2010-03-23 12:36 Marvin Doyley
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8739ztbb7j.fsf@rosslaird.com \
--to=ross@rosslaird.com \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).