From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan E. Davis" Subject: Re: Re: Displaying your Org agenda after idle time Date: Tue, 23 Mar 2010 05:15:43 +0000 Message-ID: <7bef1f891003222215s636da415mc09cd1be69f022a4@mail.gmail.com> References: <55590EA7-C744-44E5-909F-755F0BBE452D@gmail.com> <8739ztbb7j.fsf@rosslaird.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NtwdE-0000KB-SG for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 01:26:24 -0400 Received: from [140.186.70.92] (port=39209 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NtwdD-0000H3-2h for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 01:26:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NtwTE-00022L-Ld for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 01:16:05 -0400 Received: from mail-iw0-f188.google.com ([209.85.223.188]:65492) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NtwTE-000228-Hi for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 01:16:04 -0400 Received: by iwn26 with SMTP id 26so883940iwn.24 for ; Mon, 22 Mar 2010 22:16:03 -0700 (PDT) In-Reply-To: <8739ztbb7j.fsf@rosslaird.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Ross A. Laird" Cc: emacs-orgmode@gnu.org 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 wrote: > John Wiegley 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 () >> =A0 (interactive) >> =A0 (let ((buf (get-buffer "*Org Agenda*")) >> =A0 =A0 =A0 wind) >> =A0 =A0 (if buf >> =A0 =A0 =A0 (if (setq wind (get-buffer-window buf)) >> =A0 =A0 =A0 =A0 =A0 (select-window wind) >> =A0 =A0 =A0 =A0 (if (called-interactively-p) >> =A0 =A0 =A0 =A0 =A0 =A0 (progn >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 (select-window (display-buffer buf t t)) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 (org-fit-window-to-buffer) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 ;; (org-agenda-redo) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 ) >> =A0 =A0 =A0 =A0 =A0 (with-selected-window (display-buffer buf) >> =A0 =A0 =A0 =A0 =A0 =A0 (org-fit-window-to-buffer) >> =A0 =A0 =A0 =A0 =A0 =A0 ;; (org-agenda-redo) >> =A0 =A0 =A0 =A0 =A0 =A0 ))) >> =A0 =A0 =A0 (call-interactively 'org-agenda-list))) >> =A0 ;;(let ((buf (get-buffer "*Calendar*"))) >> =A0 ;; =A0(unless (get-buffer-window buf) >> =A0 ;; =A0 =A0(org-agenda-goto-calendar))) >> =A0 ) >> >> (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 >