The use of “W52” at the beginning of the week may be easier to read than the format of calendar-hack.el. Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Here’s another patch to Emacs 22 () that provides the following view of the calendar: May 2007 June 2007 July 2007 It’s also possible to display week numbers in the calendar on GnuEmacs 22, see e.g.) However, EdwardReingold, the author of the CalendarMode, has stated many times, that this is not recommended since it can break things. Support for ISO weeks in older versions of GnuEmacs To display a given ISO week in Calendar use the command calendar-iso-goto-week, which is bound to g The smaller height property, though, throws the alignment of the calendar off, so I prefer using a different color for the week number: (set-face-attribute 'calendar-iso-week-face nil 'font-lock-face 'calendar-iso-week-header-face)) One can also add a header for the week numbers: (copy-face 'default 'calendar-iso-week-header-face) This will display the week number in a somewhat (the factor 0.7 above) smaller font. 'font-lock-face 'calendar-iso-week-face)) (calendar-absolute-from-gregorian (list month day year))))) (set-face-attribute 'calendar-iso-week-face nil The code bellow was adapted from this variable’s documentation: (copy-face font-lock-constant-face 'calendar-iso-week-face) GnuEmacs 23.1 introduced the variable calendar-intermonth-text that can be used for displaying ISO week numbers in the Calendar window. Displaying ISO week numbers in CalendarMode GnuEmacs has support for displaying ISO weeks ( WikiPedia : ISO_week_date) in CalendarMode since version 23.
0 Comments
Leave a Reply. |