Variable: calendar-move-hook
calendar-move-hook is a customizable variable defined in
calendar.el.gz.
Value
nil
Documentation
List of functions called whenever the cursor moves in the calendar.
For example,
(add-hook 'calendar-move-hook (lambda () (diary-view-entries 1)))
redisplays the diary for whatever date the cursor is moved to.
Probably introduced at or before Emacs version 21.1.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/calendar.el.gz
(defcustom calendar-move-hook nil
"List of functions called whenever the cursor moves in the calendar.
For example,
(add-hook \\='calendar-move-hook (lambda () (diary-view-entries 1)))
redisplays the diary for whatever date the cursor is moved to."
:type 'hook
:options '(calendar-update-mode-line)
:group 'calendar-hooks)