aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Lohmar2015-08-03 18:49:55 +0200
committerIngo Lohmar2015-08-03 19:04:53 +0200
commit4e1bdd4494ef31c8716a125a86f6d6b8e2555ece (patch)
tree00fc31be33d71d686bc4ddf3bc9a9ec78756659c
parentfa10e77790a207aeabf354c9f5667b3dbde55bb2 (diff)
downloademacs-4e1bdd4494ef31c8716a125a86f6d6b8e2555ece.tar.gz
emacs-4e1bdd4494ef31c8716a125a86f6d6b8e2555ece.zip
Add new 'calendar-weekend-days' option
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.
-rw-r--r--doc/emacs/calendar.texi5
-rw-r--r--etc/NEWS5
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/emacs/calendar.texi b/doc/emacs/calendar.texi
index 6b21dda4844..2ab0ff34c0f 100644
--- a/doc/emacs/calendar.texi
+++ b/doc/emacs/calendar.texi
@@ -177,10 +177,13 @@ repeat count indicating how many weeks, months, or years to move
177backward or forward. 177backward or forward.
178 178
179@vindex calendar-week-start-day 179@vindex calendar-week-start-day
180@vindex calendar-weekend-days
180@cindex weeks, which day they start on 181@cindex weeks, which day they start on
181@cindex calendar, first day of week 182@cindex calendar, first day of week
182 By default, weeks begin on Sunday. To make them begin on Monday 183 By default, weeks begin on Sunday. To make them begin on Monday
183instead, set the variable @code{calendar-week-start-day} to 1. 184instead, set the variable @code{calendar-week-start-day} to 1. To
185change which day headers are highlighted as weekend days, set the
186variable @code{calendar-weekend-days}
184 187
185@node Specified Dates 188@node Specified Dates
186@subsection Specified Dates 189@subsection Specified Dates
diff --git a/etc/NEWS b/etc/NEWS
index e384d17e395..0a33a6ef3ee 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -546,6 +546,11 @@ See `diary-chinese-list-entries' and `diary-chinese-mark-entries'.
546*** The option `calendar-mode-line-format' can now be nil, 546*** The option `calendar-mode-line-format' can now be nil,
547which means to do nothing special with the mode line in calendars. 547which means to do nothing special with the mode line in calendars.
548 548
549+++
550*** New option `calendar-weekend-days'.
551The option customizes which day headers receive the
552`calendar-weekend-header' face.
553
549--- 554---
550*** Many items obsolete since at least version 23.1 have been removed. 555*** Many items obsolete since at least version 23.1 have been removed.
551The majority were function/variable/face aliases, too numerous to list here. 556The majority were function/variable/face aliases, too numerous to list here.