(lemacs.info)Diary Commands

Next: Format of Diary File Prev: Diary Up: Diary

Commands Displaying Diary Entries

   Once you have created a `~/diary' file, you can view it within
Calendar mode.  You can also view today's events independently of
Calendar mode.

     Display any diary entries for the selected date

     Display entire diary file (`show-all-diary-entries').

     Mark all visible dates that have diary entries

     Unmark calendar window (`calendar-unmark').

`M-x print-diary-entries'
     Print a hard copy of the diary display as it appears.

`M-x diary'
     Display any diary entries for today's date.

   Displaying the diary entries with `d' shows in a separate window the
diary entries for the date indicated by point in the calendar window.
The mode line of the new window shows the date of the diary entries and
any holidays that fall on that date.

   If you specify a numeric argument with `d', then all the diary
entries for that many successive days are shown.  Thus, `2 d' displays
all the entries for the selected date and for the following day.

   To get a broader overview of which days are mentioned in the diary,
use the `m' command to mark those days in the calendar window.  The
marks appear next to the dates to which they apply.  The `m' command
affects the dates currently visible and, if you scroll the calendar,
newly visible dates as well.  The `u' command deletes all diary marks
(and all holiday marks too; Note: Holidays.), not only in the dates
currently visible, but dates that become visible when you scroll the

   For more detailed information, use the `s' command, which displays
the entire diary file.

   Display of selected diary entries uses the selective display feature,
the same feature that Outline mode uses to show part of an outline
(Note: Outline Mode.).  This involves hiding the diary entries that
are not relevant, by changing the preceding newline into an ASCII
control-m (code 015).  The hidden lines are part of the buffer's text,
but they are invisible; they don't appear on the screen.  When you save
the diary file, the control-m characters are saved as newlines; thus,
the invisible lines become ordinary lines in the file.

   Because the diary buffer as you see it is an illusion, simply
printing the contents does not print what you see on your screen.  So
there is a special command to print a hard copy of the buffer *as it
appears*; this command is `M-x print-diary-entries'.  It sends the data
directly to the printer.  You can customize it like `lpr-region' (*note

   The command `M-x diary' displays the diary entries for the current
date, independently of the calendar display, and optionally for the next
few days as well; the variable `number-of-diary-entries' specifies how
many days to include (Note: Customization.).

   If you put in your `.emacs' file:


it automatically displays a window with the day's diary entries, when
you enter Emacs.  The mode line of the displayed window shows the date
and any holidays that fall on that date.

automatically generated by info2www