[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Update appointments when saving diary-file in GNU Emacs 21.3
From: |
Henrik S. Hansen |
Subject: |
Re: Update appointments when saving diary-file in GNU Emacs 21.3 |
Date: |
Mon, 17 Nov 2003 20:37:28 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> If you run `M-x diary' (or `d' i the *Calendar* buffer), the
> appointment list should be updated.
You're right. Can't believe I didn't think of that.
> If you can confirm that, then maybe you could add something like this
> to the bottom of your ~/diary file:
>
> ### Local Variables:
> ### eval: (add-hook 'local-write-file-hooks (lambda () (diary) nil))
> ### End:
This works great. Thanks a lot. :-)
To avoid being asked if eval should be run, I also set enable-local-eval
to t. However, this is probably not something everybody should do.
--
Henrik S. Hansen http://www.freecode.dk
Computer science (software engineering) student
Free Software Foundation member #1702 (http://member.fsf.org)