aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/calendar/calendar.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1999-08-28 15:18:39 +0000
committerRichard M. Stallman <[email protected]>1999-08-28 15:18:39 +0000
commit5c9705e5a99642975a100a8123a97b56aafbc91c (patch)
treed685661189977ce30a005db1c2b082038404d4e2 /lisp/calendar/calendar.el
parent7ba7b7947a7658e306fd52202d5371cca0f81866 (diff)
(calendar-move-hook): New hook.
Diffstat (limited to 'lisp/calendar/calendar.el')
-rw-r--r--lisp/calendar/calendar.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 4a4690ec3f..a8132311df 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -338,6 +338,18 @@ functions that move by days and weeks."
: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.