From: Kester Clegg <kester@cs.york.ac.uk>
Subject: Re: diary display won't initialise correctly?
Date: 07 Feb 2003 11:35:16 +0000 [thread overview]
Message-ID: <yqry94sz5l7.fsf@cs.york.ac.uk> (raw)
In-Reply-To: 3E42E752.6030009@ihs.com
Kevin Rodgers <kevin.rodgers@ihs.com> writes:
[...]
> > (add-hook 'calendar-move-hook (lambda () (view-diary-entries 4)))
> > (add-hook 'list-diary-entries-hook 'sort-diary-entries t)
> > (add-hook 'diary-hook 'appt-make-list)
> > (add-hook 'mark-diary-entries-hook 'mark-included-diary-files)
> > (add-hook 'diary-display-hook 'fancy-diary-display)
> > (setq number-of-diary-entries 7)
>
>
> Why 7 instead of 4?
I was playing around, of course! :-)
[...]
> (defadvice view-diary-entries (before number-of-diary-entries activate)
> "If ARG is not specified, display `number-of-diary-entries' instead of 1."
> (if (and (interactive-p)
> (null current-prefix-arg))
> (ad-set-arg 0 number-of-diary-entries)))
Thanks for that, seems to work fine - so is defadvice the standard way
to get a hook into something before it runs? What made you take that
route?
--
************************************************************************
Kester Clegg Dept. of Computer Science,
Research Assistant (UTC) University of York,
Tel (01904) 43 27 49 email: kester at cs.york.ac.uk
************************************************************************
next prev parent reply other threads:[~2003-02-07 11:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-06 17:53 diary display won't initialise correctly? Kester Clegg
2003-02-06 22:53 ` Kevin Rodgers
2003-02-07 11:35 ` Kester Clegg [this message]
2003-02-11 0:29 ` Kevin Rodgers
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yqry94sz5l7.fsf@cs.york.ac.uk \
--to=kester@cs.york.ac.uk \
/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 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.