Книга: Learning GNU Emacs, 3rd Edition

5.5.1.1 Moving in the calendar

5.5.1.1 Moving in the calendar

When you're in the calendar, Emacs sensibly moves by day rather than by character. C-f moves you to the next day; C-b moves you to the previous day. C-n moves you to the same day of the next week; C-p moves you back a week. The arrow keys work the same way. M-} and M-{ move forward and backward by month, and C-x [ and C-x ] move forward and backward by year. C-v scrolls forward by three months; M-v scrolls back three months.

The movement commands just discussed move you relative to the cursor position. If you're on Tuesday and you press C-n, you'll move to next Tuesday. If you're on January 25 and press M-} you'll move to February 25. If you're on August 15, 2004 and press C-x [, you'll move to August 15, 2003.

Other commands move to the beginning or the end of the week, month, or year. C-a and C-e move to the beginning and end of the week, M-a moves to the beginning of the month, and M-< moves to the beginning of the year. Table 5-4 summarizes these calendar movement commands.

To go to a particular date, press g d. Emacs asks for the year, then the month, and then the day. Emacs moves you to the day selected (this command is well-suited for answering that all-important question, "On what day of the week does my birthday fall in 2020?").

Table 5-4. Calendar movement commands

Keystrokes Command name Action
(none) Tools ? Display Calendar calendar Display the calendar.
.Goto ? Today 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 ] Scroll ? Forward 1 Year calendar-forward-year Move forward a year.
C-x [ Scroll ? Backward 1 Year calendar-backward-year Move backward a year.
C-a Goto ? Beginning of Week calendar-beginning-of-week Move to the beginning of the week.
C-e Goto ? End of Week calendar-end-of-week Move to the end of the week.
M-a Goto ? Beginning of Month calendar-beginning-of-month Move to the beginning of the month.
M-e Goto ? End of Month calendar-end-of-month Move to the end of the month.
M-< Goto ? Beginning of Year calendar-beginning-of-year Move to the beginning of the year.
M-> Goto ? End of Year calendar-end-of-year Move to the end of the year.
g d Goto ? Other 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 < Scroll ? Forward 1 Month scroll-calendar-left Scroll forward one month.
C-x > Scroll ? Backward 1 Month scroll-calendar-right Scroll backward one month.
C-v Scroll ? Forward 3 Months scroll-calendar-left-three-months Scroll forward three months.
M-v Scroll ? Forward 3 Months scroll-calendar-right-three-months Scroll backward three months.
Space scroll-other-window Scroll another window.

Оглавление книги

Оглавление статьи/книги

Генерация: 1.107. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз