Prev

Advanced Emacs Features

Next

Calendar mode

M-x calendar Display the calendar
C-x > C-x < Navigation by month
g d Go to a specific date
. Go to today
M-= Number of days in region
S Sunrise/sunset
M Phases of the moon
t y Print a year calendar
t Y Print a year calendar (landscape)
t m Print a month calendar
t M Print a month calendar (landscape)

How to tell emacs where you are:

; Calendar localization (for sunrise/sunset)
(setq calendar-latitude 40.1)
(setq calendar-longitude -75.1)
(setq calendar-location-name "Abington, PA")
(setq cal-tex-diary t)    ; print diary entries on calendar output.
For further information: