diff options
| -rw-r--r-- | lisp/calendar/calendar.el | 12 |
1 files changed, 12 insertions, 0 deletions
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 | |||
| @@ -338,6 +338,18 @@ functions that move by days and weeks." | |||
| 338 | :group 'calendar-hooks) | 338 | :group 'calendar-hooks) |
| 339 | 339 | ||
| 340 | ;;;###autoload | 340 | ;;;###autoload |
| 341 | (defcustom calendar-move-hook nil | ||
| 342 | "*List of functions called whenever the cursor moves in the calendar. | ||
| 343 | |||
| 344 | For example, | ||
| 345 | |||
| 346 | (add-hook 'calendar-move-hook (lambda () (view-diary-entries 1))) | ||
| 347 | |||
| 348 | redisplays the diary for whatever date the cursor is moved to." | ||
| 349 | :type 'hook | ||
| 350 | :group 'calendar-hooks) | ||
| 351 | |||
| 352 | ;;;###autoload | ||
| 341 | (defcustom diary-file "~/diary" | 353 | (defcustom diary-file "~/diary" |
| 342 | "*Name of the file in which one's personal diary of dates is kept. | 354 | "*Name of the file in which one's personal diary of dates is kept. |
| 343 | 355 | ||