emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Christian Wittern <cwittern@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Displaying agenda for today instead of diary with the calendar
Date: Wed, 31 Oct 2012 23:41:54 -0400	[thread overview]
Message-ID: <5865.1351741314@alphaville> (raw)
In-Reply-To: Message from Christian Wittern <cwittern@gmail.com> of "Thu, 01 Nov 2012 10:04:01 +0900." <5091CA81.5060909@gmail.com>

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

  reply	other threads:[~2012-11-01  3:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-01  1:04 Displaying agenda for today instead of diary with the calendar Christian Wittern
2012-11-01  3:41 ` Nick Dokos [this message]
2012-11-01 22:48   ` Christian Wittern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5865.1351741314@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=cwittern@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).