diff options
| author | Richard M. Stallman | 1999-08-28 15:18:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-08-28 15:18:39 +0000 |
| commit | 5c9705e5a99642975a100a8123a97b56aafbc91c (patch) | |
| tree | d685661189977ce30a005db1c2b082038404d4e2 | |
| parent | 7ba7b7947a7658e306fd52202d5371cca0f81866 (diff) | |
| download | emacs-5c9705e5a99642975a100a8123a97b56aafbc91c.tar.gz emacs-5c9705e5a99642975a100a8123a97b56aafbc91c.zip | |
(calendar-move-hook): New hook.
| -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 | ||