From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Displaying your Org agenda after idle time Date: Tue, 23 Mar 2010 08:38:08 +0100 Message-ID: References: <55590EA7-C744-44E5-909F-755F0BBE452D@gmail.com> <8739ztbb7j.fsf@rosslaird.com> <7bef1f891003222215s636da415mc09cd1be69f022a4@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ntygr-0004HE-IM for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:38:17 -0400 Received: from [140.186.70.92] (port=48988 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ntygo-0004Gl-LS for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:38:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ntygn-0003qQ-1s for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:38:14 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:57603) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntygm-0003qJ-SB for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:38:12 -0400 Received: by fg-out-1718.google.com with SMTP id d23so1079510fga.12 for ; Tue, 23 Mar 2010 00:38:12 -0700 (PDT) In-Reply-To: <7bef1f891003222215s636da415mc09cd1be69f022a4@mail.gmail.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: "Alan E. Davis" Cc: emacs-orgmode@gnu.org, "Ross A. Laird" On Mar 23, 2010, at 6:15 AM, Alan E. Davis wrote: > 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. Basically: Use a variable to store the (current-window-configuration) and then have a separate function restoring that configuration using set-window- configuration. - Carsten > > 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 () >>> (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 >> > > > _______________________________________________ > 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 - Carsten