comparison man/emacs-xtra.texi @ 61004:4030d2641654

(Calendar Customizing): Move view-diary-entries-initially, view-calendar-holidays-initially, mark-diary-entries-in-calendar, mark-holidays-in-calendar to main Emacs Manual. (Appt Customizing): Merge entire section into main Emacs Manual.
author Glenn Morris <rgm@gnu.org>
date Sat, 26 Mar 2005 19:52:27 +0000
parents 7493ddb113fc
children 3723093a21fd
comparison
equal deleted inserted replaced
61003:1c1bec847a76 61004:4030d2641654
325 * Diary Customizing:: Defaults you can set. 325 * Diary Customizing:: Defaults you can set.
326 * Hebrew/Islamic Entries:: How to obtain them. 326 * Hebrew/Islamic Entries:: How to obtain them.
327 * Fancy Diary Display:: Enhancing the diary display, sorting entries, 327 * Fancy Diary Display:: Enhancing the diary display, sorting entries,
328 using included diary files. 328 using included diary files.
329 * Sexp Diary Entries:: Fancy things you can do. 329 * Sexp Diary Entries:: Fancy things you can do.
330 * Appt Customizing:: Customizing appointment reminders.
331 @end menu 330 @end menu
332 331
333 @node Calendar Customizing 332 @node Calendar Customizing
334 @section Customizing the Calendar 333 @section Customizing the Calendar
335 @vindex view-diary-entries-initially
336
337 If you set the variable @code{view-diary-entries-initially} to
338 @code{t}, calling up the calendar automatically displays the diary
339 entries for the current date as well. The diary dates appear only if
340 the current date is visible. If you add both of the following lines to
341 your init file:@refill
342
343 @example
344 (setq view-diary-entries-initially t)
345 (calendar)
346 @end example
347
348 @noindent
349 this displays both the calendar and diary windows whenever you start Emacs.
350
351 @vindex view-calendar-holidays-initially
352 Similarly, if you set the variable
353 @code{view-calendar-holidays-initially} to @code{t}, entering the
354 calendar automatically displays a list of holidays for the current
355 three-month period. The holiday list appears in a separate
356 window.
357
358 @vindex mark-diary-entries-in-calendar
359 You can set the variable @code{mark-diary-entries-in-calendar} to
360 @code{t} in order to mark any dates with diary entries. This takes
361 effect whenever the calendar window contents are recomputed. There are
362 two ways of marking these dates: by changing the face
363 (@pxref{Faces,,, elisp, the Emacs Lisp Reference Manual}), or by placing
364 a plus sign (@samp{+}) beside the date.
365
366 @vindex mark-holidays-in-calendar
367 Similarly, setting the variable @code{mark-holidays-in-calendar} to
368 @code{t} marks holiday dates, either with a change of face or with an
369 asterisk (@samp{*}).
370
371 @vindex calendar-holiday-marker 334 @vindex calendar-holiday-marker
372 @vindex diary-entry-marker 335 @vindex diary-entry-marker
373 The variable @code{calendar-holiday-marker} specifies how to mark a 336 The variable @code{calendar-holiday-marker} specifies how to mark a
374 date as being a holiday. Its value may be a single-character string 337 date as being a holiday. Its value may be a single-character string
375 to insert next to the date, or a face name to use for displaying the 338 to insert next to the date, or a face name to use for displaying the
1258 All the functions documented above take an optional argument 1221 All the functions documented above take an optional argument
1259 @var{mark} which specifies how to mark the date in the calendar display. 1222 @var{mark} which specifies how to mark the date in the calendar display.
1260 If one of these functions decides that it applies to a certain date, 1223 If one of these functions decides that it applies to a certain date,
1261 it returns a value that contains @var{mark}. 1224 it returns a value that contains @var{mark}.
1262 1225
1263 @node Appt Customizing
1264 @section Customizing Appointment Reminders
1265
1266 You can specify exactly how Emacs reminds you of an appointment, and
1267 how far in advance it begins doing so, by setting these variables:
1268
1269 @vindex appt-message-warning-time
1270 @vindex appt-audible
1271 @vindex appt-visible
1272 @vindex appt-display-mode-line
1273 @vindex appt-msg-window
1274 @vindex appt-display-duration
1275 @vindex appt-disp-window-function
1276 @vindex appt-delete-window-function
1277 @table @code
1278 @item appt-message-warning-time
1279 The time in minutes before an appointment that the reminder begins. The
1280 default is 12 minutes.
1281 @item appt-audible
1282 If this is non-@code{nil}, Emacs rings the
1283 terminal bell for appointment reminders. The default is @code{t}.
1284 @item appt-visible
1285 If this is non-@code{nil}, Emacs displays the appointment
1286 message in the echo area. The default is @code{t}.
1287 @item appt-display-mode-line
1288 If this is non-@code{nil}, Emacs displays the number of minutes
1289 to the appointment on the mode line. The default is @code{t}.
1290 @item appt-msg-window
1291 If this is non-@code{nil}, Emacs displays the appointment
1292 message in another window. The default is @code{t}.
1293 @item appt-disp-window-function
1294 This variable holds a function to use to create the other window
1295 for the appointment message.
1296 @item appt-delete-window-function
1297 This variable holds a function to use to get rid of the appointment
1298 message window, when its time is up.
1299 @item appt-display-duration
1300 The number of seconds to display an appointment message. The default
1301 is 10 seconds.
1302 @end table
1303
1304 1226
1305 @node Index 1227 @node Index
1306 @unnumbered Index 1228 @unnumbered Index
1307 1229
1308 @printindex cp 1230 @printindex cp