From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Displaying agenda for today instead of diary with the calendar Date: Wed, 31 Oct 2012 23:41:54 -0400 Message-ID: <5865.1351741314@alphaville> References: <5091CA81.5060909@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTlfK-0002jp-Uz for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 23:41:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTlfJ-0003Hs-Qb for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 23:41:58 -0400 Received: from g1t0026.austin.hp.com ([15.216.28.33]:16283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTlfJ-0003Hn-LC for emacs-orgmode@gnu.org; Wed, 31 Oct 2012 23:41:57 -0400 In-Reply-To: Message from Christian Wittern of "Thu, 01 Nov 2012 10:04:01 +0900." <5091CA81.5060909@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christian Wittern Cc: Org Mode Mailing List Christian Wittern 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 brings up the following completions: ,---- | Click 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