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-for arrow-right is(calendar-forward-day)andC-bor arrow-left is(calendar-backward-day).C-nor arrow-down is(calendar-forward-week)andC-por 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.) owill 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 dis (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 morH yto 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
hto see known holidays for the selected date, orato see all holidays for the three month period that is displayed. UseM-x list-holidaysfor even more. UseMto see a list of lunar phases. UseSto see sunrise/sunset information.
Also see the emacs manual.
Published 15 Apr 2013
Snippets are tiny notes I've collected for easy reference.
