]> code.delx.au - gnu-emacs/commitdiff
Add new 'calendar-weekend-days' option
authorIngo Lohmar <i.lohmar@gmail.com>
Mon, 3 Aug 2015 16:49:55 +0000 (18:49 +0200)
committerIngo Lohmar <i.lohmar@gmail.com>
Mon, 3 Aug 2015 17:04:53 +0000 (19:04 +0200)
Make the days receiving the `calendar-weekend-header' face freely
customizable, as they differ by region/culture.
* doc/emacs/calendar.texi: Document the new variable.
* lisp/calendar/calendar.el (calendar-generate-month): New variable
calendar-weekend-days to customize day header fontification.

doc/emacs/calendar.texi
etc/NEWS

index 6b21dda484452494bd67525656a359bc6fa42b1d..2ab0ff34c0f6ebdc0a8f4682021bb1d135e61053 100644 (file)
@@ -177,10 +177,13 @@ repeat count indicating how many weeks, months, or years to move
 backward or forward.
 
 @vindex calendar-week-start-day
+@vindex calendar-weekend-days
 @cindex weeks, which day they start on
 @cindex calendar, first day of week
   By default, weeks begin on Sunday.  To make them begin on Monday
-instead, set the variable @code{calendar-week-start-day} to 1.
+instead, set the variable @code{calendar-week-start-day} to 1.  To
+change which day headers are highlighted as weekend days, set the
+variable @code{calendar-weekend-days}
 
 @node Specified Dates
 @subsection Specified Dates
index e384d17e3957778eb31f4b5ec31820c0f18e6fa3..0a33a6ef3ee2a49ee2e130c256f66f992336760f 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -546,6 +546,11 @@ See `diary-chinese-list-entries' and `diary-chinese-mark-entries'.
 *** The option `calendar-mode-line-format' can now be nil,
 which means to do nothing special with the mode line in calendars.
 
++++
+*** New option `calendar-weekend-days'.
+The option customizes which day headers receive the
+`calendar-weekend-header' face.
+
 ---
 *** Many items obsolete since at least version 23.1 have been removed.
 The majority were function/variable/face aliases, too numerous to list here.