emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Displaying agenda for today instead of diary with the calendar
@ 2012-11-01  1:04 Christian Wittern
  2012-11-01  3:41 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Wittern @ 2012-11-01  1:04 UTC (permalink / raw)
  To: Org Mode Mailing List

Dear org-moders,

Over the years I have gradually moved most of my planning from the Emacs 
diary to org-mode. However, when I call up the Emacs calendar, it still 
displays the day-view of my diary, which does not have relevant information 
anymore.  I would like to replace it with the agenda buffer.

Upon investigation, it seems that calendar calls 'view-diary-entries' to 
display the diary.  Has anybody here managed to replace this with an 
appropriate call to display the agenda buffer?  How would I go ahead to 
achieve this?

Any help appreciated,

Christian

-- 
Christian Wittern, Kyoto

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

* Re: Displaying agenda for today instead of diary with the calendar
  2012-11-01  1:04 Displaying agenda for today instead of diary with the calendar Christian Wittern
@ 2012-11-01  3:41 ` Nick Dokos
  2012-11-01 22:48   ` Christian Wittern
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2012-11-01  3:41 UTC (permalink / raw)
  To: Christian Wittern; +Cc: Org Mode Mailing List

Christian Wittern <cwittern@gmail.com> wrote:

> Dear org-moders,
> 
> Over the years I have gradually moved most of my planning from the
> Emacs diary to org-mode. However, when I call up the Emacs calendar,
> it still displays the day-view of my diary, which does not have
> relevant information anymore.  I would like to replace it with the
> agenda buffer.
> 
> Upon investigation, it seems that calendar calls 'view-diary-entries'
> to display the diary.  Has anybody here managed to replace this with
> an appropriate call to display the agenda buffer?  How would I go
> ahead to achieve this?
> 

My calendar does not do that, so I presume you have customized a
hook. C-h v calendar--hook <TAB> brings up the following completions:

,----
| Click <mouse-2> on a completion to select it.
| In this buffer, type RET to select the completion near point.
| 
| Possible completions are:
| calendar-initial-window-hook 	calendar-load-hook
| calendar-mode-hook 	calendar-move-hook
| calendar-today-invisible-hook 	calendar-today-visible-hook
`----

so check them to see which one contains a view-diary-entries entry (or
as it is called today diary-view-entries) - probably
calendar-initial-window-hook, and replace it with a function
that brings up your agenda; maybe something like this:

(add-hook 'calendar-initial-window-hook 'org-agenda-list)

Nick

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

* Re: Displaying agenda for today instead of diary with the calendar
  2012-11-01  3:41 ` Nick Dokos
@ 2012-11-01 22:48   ` Christian Wittern
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Wittern @ 2012-11-01 22:48 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Org Mode Mailing List

On 2012-11-01 12:41, Nick Dokos wrote:
> (add-hook 'calendar-initial-window-hook 'org-agenda-list)
That's it, it works wonderfully!  Thank's a lot,

Christian

-- 
Christian Wittern, Kyoto

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

end of thread, other threads:[~2012-11-01 22:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-01  1:04 Displaying agenda for today instead of diary with the calendar Christian Wittern
2012-11-01  3:41 ` Nick Dokos
2012-11-01 22:48   ` Christian Wittern

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).