Mercurial > emacs
changeset 25410:3ab4413f7549
(calendar-move-hook): New hook.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 28 Aug 1999 15:18:39 +0000 |
parents | d414a697a646 |
children | 0d68ae69cd8c |
files | lisp/calendar/calendar.el |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calendar/calendar.el Sat Aug 28 15:16:55 1999 +0000 +++ b/lisp/calendar/calendar.el Sat Aug 28 15:18:39 1999 +0000 @@ -338,6 +338,18 @@ :group 'calendar-hooks) ;;;###autoload +(defcustom calendar-move-hook nil + "*List of functions called whenever the cursor moves in the calendar. + +For example, + + (add-hook 'calendar-move-hook (lambda () (view-diary-entries 1))) + +redisplays the diary for whatever date the cursor is moved to." + :type 'hook + :group 'calendar-hooks) + +;;;###autoload (defcustom diary-file "~/diary" "*Name of the file in which one's personal diary of dates is kept.