Go to the first, previous, next, last section, table of contents.

Holidays

The Emacs calendar knows about all major and many minor holidays, and can display them.

h
Display holidays for the selected date (calendar-cursor-holidays).
Mouse-2 Holidays
Display any diary entries for the date you click on.
x
Mark holidays in the calendar window (mark-calendar-holidays).
u
Unmark calendar window (calendar-unmark).
a
List all holidays for the displayed three months in another window (list-calendar-holidays).
M-x holidays
List all holidays for three months around today's date in another window.

To see if any holidays fall on a given date, position point on that date in the calendar window and use the h command. Alternatively, click on that date with Mouse-2 and then choose Holidays from the menu that appears. Either way, this displays the holidays for that date, in the echo area if they fit there, otherwise in a separate window.

To view the distribution of holidays for all the dates shown in the calendar, use the x command. This displays the dates that are holidays in a different face (or places a `*' after these dates, if display with multiple faces is not available). The command applies both to the currently visible months and to other months that subsequently become visible by scrolling. To turn marking off and erase the current marks, type u, which also erases any diary marks (see section The Diary).

To get even more detailed information, use the a command, which displays a separate buffer containing a list of all holidays in the current three-month range. You can use SPC in the calendar window to scroll that list.

The command M-x holidays displays the list of holidays for the current month and the preceding and succeeding months; this works even if you don't have a calendar window. If you want the list of holidays centered around a different month, use C-u M-x holidays, which prompts for the month and year.

The holidays known to Emacs include American holidays and the major Christian, Jewish, and Islamic holidays; also the solstices and equinoxes.

The dates used by Emacs for holidays are based on current practice, not historical fact. Historically, for instance, the start of daylight savings time and even its existence have varied from year to year, but present American law mandates that daylight savings time begins on the first Sunday in April. In an American locale, Emacs always uses this definition, even though it is wrong for some prior years.


Go to the first, previous, next, last section, table of contents.