all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Displaying your Org agenda after idle time
@ 2010-03-18  9:30 John Wiegley
  2010-03-18 18:17 ` Jason Dunsmore
  2010-03-21 21:45 ` Ross A. Laird
  0 siblings, 2 replies; 6+ messages in thread
From: John Wiegley @ 2010-03-18  9:30 UTC (permalink / raw)
  To: Org-mode Mode

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)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Displaying your Org agenda after idle time
  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
  1 sibling, 0 replies; 6+ messages in thread
From: Jason Dunsmore @ 2010-03-18 18:17 UTC (permalink / raw)
  To: John Wiegley; +Cc: Org-mode Mode

I've been searching for a good way to remember to look at my agenda.
Great idea!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Displaying your Org agenda after idle time
  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
  1 sibling, 1 reply; 6+ messages in thread
From: Ross A. Laird @ 2010-03-21 21:45 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Displaying your Org agenda after idle time
  2010-03-21 21:45 ` Ross A. Laird
@ 2010-03-23  5:15   ` Alan E. Davis
  2010-03-23  7:38     ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Alan E. Davis @ 2010-03-23  5:15 UTC (permalink / raw)
  To: Ross A. Laird; +Cc: emacs-orgmode

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
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Displaying your Org agenda after idle time
  2010-03-23  5:15   ` Alan E. Davis
@ 2010-03-23  7:38     ` Carsten Dominik
  0 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2010-03-23  7:38 UTC (permalink / raw)
  To: Alan E. Davis; +Cc: emacs-orgmode, 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 <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
>>
>
>
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Displaying your Org agenda after idle time
@ 2010-03-23 12:36 Marvin Doyley
  0 siblings, 0 replies; 6+ messages in thread
From: Marvin Doyley @ 2010-03-23 12:36 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 43 bytes --]

This is an awesome function.

Thanks
M





[-- Attachment #1.2: Type: text/html, Size: 755 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-03-23 12:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-03-23  7:38     ` Carsten Dominik
  -- strict thread matches above, loose matches on Subject: below --
2010-03-23 12:36 Marvin Doyley

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.