From 5c9705e5a99642975a100a8123a97b56aafbc91c Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 28 Aug 1999 15:18:39 +0000 Subject: [PATCH] (calendar-move-hook): New hook. --- lisp/calendar/calendar.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 4a4690ec3f3..a8132311dfb 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el @@ -337,6 +337,18 @@ functions that move by days and weeks." :type 'hook :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.