Snippets are tiny notes I've collected for easy reference.
emacs calendar functions
Open the calendar:
M-x calendar
(You can close the calendar with q
, which invokes (calendar-exit)
.
Movement:
C-f
or arrow-right is(calendar-forward-day)
andC-b
or arrow-left is(calendar-backward-day)
.C-n
or arrow-down is(calendar-forward-week)
andC-p
or arrow-up is(calendar-backward-week)
.M-}
or>
is(calendar-forward-month)
andM-{
or<
is(calendar-backward-month)
C-x ]
is(calendar-forward-year)
andC-x [
is(calendar-backward-year)
- Use the
M-<n>
prefix to move a multiple of the above. E.g.M-90 C-f
(orM-90 <right-arrow>
) moves forward 90 days. (In calendar mode, the meta key is optional, simply90 <right-arrow>
will move forward 90 days,16 <down-arrow>
will move forward 16 weeks, etc.) o
will let you interactively select a date..
will return to today
Other:
- (Right-click on the calendar will generally open up a context-menu about these.)
p d
is (calendar-print-day-of-year)- Type
C-<space>
, move to another date and typeM-=
to invoke(calendar-count-days-region)
(show the number of days between the dates (including the endpoints). - Type
H m
orH y
to generate an html-format calendar (month and year, respectively). (t <something>
generates a number of interesting calendars in TeX, if you are so inclined.) - Type
h
to see known holidays for the selected date, ora
to see all holidays for the three month period that is displayed. UseM-x list-holidays
for even more. UseM
to see a list of lunar phases. UseS
to see sunrise/sunset information.
Also see the emacs manual.
Published 15 Apr 2013
Snippets are tiny notes I've collected for easy reference.