* 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; 4+ 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] 4+ messages in thread
* Re: 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
1 sibling, 0 replies; 4+ 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] 4+ messages in thread
* Re: 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
1 sibling, 0 replies; 4+ 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] 4+ messages in thread
* RE: Displaying your Org agenda after idle time
@ 2010-03-23 12:36 Marvin Doyley
0 siblings, 0 replies; 4+ 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] 4+ messages in thread
end of thread, other threads:[~2010-03-23 12:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-23 12:36 Displaying your Org agenda after idle time Marvin Doyley
-- strict thread matches above, loose matches on Subject: below --
2010-03-18 9:30 John Wiegley
2010-03-18 18:17 ` Jason Dunsmore
2010-03-21 21:45 ` Ross A. Laird
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.