Выбрать главу

Table 5-4. Calendar movement commands

Keystrokes Command name Action
(none) ToolsDisplay Calendar calendar Display the calendar.
.GotoToday calendar-goto-today Move to today's date.
C-f calendar-forward-day Move forward a day.
C-b calendar-backward-day Move backward a day.
C-n calendar-forward-week Move forward a week.
C-p calendar-backward-week Move backward a week.
M-} calendar-forward-month Move forward one month.
M-{ calendar-backward-month Move backward a month.
C-x ] ScrollForward 1 Year calendar-forward-year Move forward a year.
C-x [ ScrollBackward 1 Year calendar-backward-year Move backward a year.
C-a GotoBeginning of Week calendar-beginning-of-week Move to the beginning of the week.
C-e GotoEnd of Week calendar-end-of-week Move to the end of the week.
M-a GotoBeginning of Month calendar-beginning-of-month Move to the beginning of the month.
M-e GotoEnd of Month calendar-end-of-month Move to the end of the month.
M-< GotoBeginning of Year calendar-beginning-of-year Move to the beginning of the year.
M-> GotoEnd of Year calendar-end-of-year Move to the end of the year.
g d GotoOther Date calendar-goto-date Go to the specified date.
o calendar-other-month Put the specified month in the middle of the display.
C-x < ScrollForward 1 Month scroll-calendar-left Scroll forward one month.
C-x > ScrollBackward 1 Month scroll-calendar-right Scroll backward one month.
C-v ScrollForward 3 Months scroll-calendar-left-three-months Scroll forward three months.
M-v ScrollForward 3 Months scroll-calendar-right-three-months Scroll backward three months.
Space scroll-other-window Scroll another window.

5.5.1.2 Displaying holidays

Let's move to a topic everyone is interested in: holidays. To display the holidays for the part of the calendar you are looking at, type a (for list-calendar-holidays) or select 3 Months from the Holidays menu.

Type: a

Emacs lists holidays for the time period shown.

As you can see, Emacs knows about a fairly wide variety of holidays or, as it calls them, "notable dates." If you are somewhere else on the calendar but want to see holidays surrounding the current month, type M-x holidays. Emacs lists them. To see whether today is a holiday, type h or select One Day from the Holidays menu.