aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/calendar/calendar.el53
1 files changed, 29 insertions, 24 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 5ea0d145ea9..d1642cdc547 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -188,48 +188,53 @@ The marking symbol is specified by the variable `diary-entry-marker'."
188 :type 'boolean 188 :type 'boolean
189 :group 'diary) 189 :group 'diary)
190 190
191(when window-system
192 (add-to-list 'facemenu-unlisted-faces 'diary-face)
193 (defface diary-face
194 '(((:class color) :foreground "red")
195 (t (:bold t)))
196 "Face for highlighting diary entries."
197 :group 'diary)
198
199 (add-to-list 'facemenu-unlisted-faces 'calendar-today-face)
200 (defface calendar-today-face
201 '((t (:underline t)))
202 "Face for indicating today's date."
203 :group 'diary)
204
205 (add-to-list 'facemenu-unlisted-faces 'holiday-face)
206 (defface holiday-face
207 '(((:class color) :background "pink")
208 (t (:inverse-video t)))
209 "Face for indicating dates that have holidays."
210 :group 'diary))
211
191(defcustom diary-entry-marker 212(defcustom diary-entry-marker
192 (if (not window-system) 213 (if (not window-system)
193 "+" 214 "+"
194 (require 'faces)
195 (add-to-list 'facemenu-unlisted-faces 'diary-face)
196 (make-face 'diary-face)
197 (cond ((face-differs-from-default-p 'diary-face))
198 ((x-display-color-p) (set-face-foreground 'diary-face "red"))
199 (t (copy-face 'bold 'diary-face)))
200 'diary-face) 215 'diary-face)
201 "*Used to mark dates that have diary entries. 216 "*How to mark dates that have diary entries.
202Can be either a single-character string or a face." 217The value can be either a single-character string or a face."
203 :type '(choice string face) 218 :type '(choice string face)
204 :group 'diary) 219 :group 'diary)
205 220
206(defcustom calendar-today-marker 221(defcustom calendar-today-marker
207 (if (not window-system) 222 (if (not window-system)
208 "=" 223 "="
209 (require 'faces)
210 (add-to-list 'facemenu-unlisted-faces 'calendar-today-face)
211 (make-face 'calendar-today-face)
212 (if (not (face-differs-from-default-p 'calendar-today-face))
213 (set-face-underline-p 'calendar-today-face t))
214 'calendar-today-face) 224 'calendar-today-face)
215 "*Used to mark today's date. 225 "*How to mark today's date in the calendar.
216Can be either a single-character string or a face." 226The value can be either a single-character string or a face.
227Marking today's date is done only if you set up `today-visible-calendar-hook'
228to request that."
217 :type '(choice string face) 229 :type '(choice string face)
218 :group 'calendar) 230 :group 'calendar)
219 231
220(defcustom calendar-holiday-marker 232(defcustom calendar-holiday-marker
221 (if (not window-system) 233 (if (not window-system)
222 "*" 234 "*"
223 (require 'faces)
224 (add-to-list 'facemenu-unlisted-faces 'holiday-face)
225 (make-face 'holiday-face)
226 (cond ((face-differs-from-default-p 'holiday-face))
227 ((x-display-color-p) (set-face-background 'holiday-face "pink"))
228 (t (set-face-background 'holiday-face "black")
229 (set-face-foreground 'holiday-face "white")))
230 'holiday-face) 235 'holiday-face)
231 "*Used to mark notable dates in the calendar. 236 "*How to mark notable dates in the calendar.
232Can be either a single-character string or a face." 237The value can be either a single-character string or a face."
233 :type '(choice string face) 238 :type '(choice string face)
234 :group 'calendar) 239 :group 'calendar)
235 240