Mercurial > emacs
comparison lispref/calendar.texi @ 60502:33dd6eed0d84
(Calendar Customizing): calendar-holiday-marker
and calendar-today-marker are strings, not chars.
(Holiday Customizing): Minor fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 08 Mar 2005 03:08:55 +0000 |
parents | 7322b3a75ca3 |
children | 29e773288013 |
comparison
equal
deleted
inserted
replaced
60501:ac9848689bc2 | 60502:33dd6eed0d84 |
---|---|
60 asterisk (@samp{*}). | 60 asterisk (@samp{*}). |
61 | 61 |
62 @vindex calendar-holiday-marker | 62 @vindex calendar-holiday-marker |
63 @vindex diary-entry-marker | 63 @vindex diary-entry-marker |
64 The variable @code{calendar-holiday-marker} specifies how to mark a | 64 The variable @code{calendar-holiday-marker} specifies how to mark a |
65 date as being a holiday. Its value may be a character to insert next to | 65 date as being a holiday. Its value may be a single-character string |
66 the date, or a face name to use for displaying the date. Likewise, the | 66 to insert next to the date, or a face name to use for displaying the |
67 variable @code{diary-entry-marker} specifies how to mark a date that has | 67 date. Likewise, the variable @code{diary-entry-marker} specifies how |
68 diary entries. The calendar creates faces named @code{holiday-face} and | 68 to mark a date that has diary entries. The calendar creates faces |
69 @code{diary-face} for these purposes; those symbols are the default | 69 named @code{holiday-face} and @code{diary-face} for these purposes; |
70 values of these variables. | 70 those symbols are the default values of these variables. |
71 | 71 |
72 @vindex calendar-load-hook | 72 @vindex calendar-load-hook |
73 The variable @code{calendar-load-hook} is a normal hook run when the | 73 The variable @code{calendar-load-hook} is a normal hook run when the |
74 calendar package is first loaded (before actually starting to display | 74 calendar package is first loaded (before actually starting to display |
75 the calendar). | 75 the calendar). |
101 (add-hook 'today-visible-calendar-hook 'calendar-mark-today) | 101 (add-hook 'today-visible-calendar-hook 'calendar-mark-today) |
102 @end example | 102 @end example |
103 | 103 |
104 @noindent | 104 @noindent |
105 @vindex calendar-today-marker | 105 @vindex calendar-today-marker |
106 The variable @code{calendar-today-marker} specifies how to mark today's | 106 The variable @code{calendar-today-marker} specifies how to mark |
107 date. Its value should be a character to insert next to the date or a | 107 today's date. Its value should be a single-character string to insert |
108 face name to use for displaying the date. A face named | 108 next to the date or a face name to use for displaying the date. A |
109 @code{calendar-today-face} is provided for this purpose; that symbol is | 109 face named @code{calendar-today-face} is provided for this purpose; |
110 the default for this variable. | 110 that symbol is the default for this variable. |
111 | 111 |
112 @vindex today-invisible-calendar-hook | 112 @vindex today-invisible-calendar-hook |
113 @noindent | 113 @noindent |
114 A similar normal hook, @code{today-invisible-calendar-hook} is run if | 114 A similar normal hook, @code{today-invisible-calendar-hook} is run if |
115 the current date is @emph{not} visible in the window. | 115 the current date is @emph{not} visible in the window. |
128 Emacs knows about holidays defined by entries on one of several lists. | 128 Emacs knows about holidays defined by entries on one of several lists. |
129 You can customize these lists of holidays to your own needs, adding or | 129 You can customize these lists of holidays to your own needs, adding or |
130 deleting holidays. The lists of holidays that Emacs uses are for | 130 deleting holidays. The lists of holidays that Emacs uses are for |
131 general holidays (@code{general-holidays}), local holidays | 131 general holidays (@code{general-holidays}), local holidays |
132 (@code{local-holidays}), Christian holidays (@code{christian-holidays}), | 132 (@code{local-holidays}), Christian holidays (@code{christian-holidays}), |
133 Hebrew (Jewish) holidays (@code{hebrew-holidays}), Islamic (Moslem) | 133 Hebrew (Jewish) holidays (@code{hebrew-holidays}), Islamic (Muslim) |
134 holidays (@code{islamic-holidays}), and other holidays | 134 holidays (@code{islamic-holidays}), and other holidays |
135 (@code{other-holidays}). | 135 (@code{other-holidays}). |
136 | 136 |
137 @vindex general-holidays | 137 @vindex general-holidays |
138 The general holidays are, by default, holidays common throughout the | 138 The general holidays are, by default, holidays common throughout the |