1 ;;; org-faces.el --- Face definitions for Org-mode.
3 ;; Copyright (C) 2004-2014 Free Software Foundation, Inc.
5 ;; Author: Carsten Dominik <carsten at orgmode dot org>
6 ;; Keywords: outlines, hypermedia, calendar, wp
7 ;; Homepage: http://orgmode.org
9 ;; This file is part of GNU Emacs.
11 ;; GNU Emacs is free software: you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation, either version 3 of the License, or
14 ;; (at your option) any later version.
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
27 ;; This file contains the face definitions for Org.
34 (defun org-copy-face (old-face new-face docstring
&rest attributes
)
35 (unless (facep new-face
)
36 (if (fboundp 'set-face-attribute
)
39 (set-face-attribute new-face nil
:inherit old-face
)
40 (apply 'set-face-attribute new-face nil attributes
)
41 (set-face-doc-string new-face docstring
))
42 (copy-face old-face new-face
)
43 (if (fboundp 'set-face-doc-string
)
44 (set-face-doc-string new-face docstring
)))))
45 (put 'org-copy-face
'lisp-indent-function
2)
47 (when (featurep 'xemacs
)
48 (put 'mode-line
'face-alias
'modeline
))
50 (defgroup org-faces nil
53 :group
'org-appearance
)
56 (org-compatible-face 'default nil
)
57 "Face used for default text."
61 '((((background light
)) (:foreground
"white"))
62 (((background dark
)) (:foreground
"black")))
63 "Face used to hide leading stars in headlines.
64 The foreground color of this face should be equal to the background
68 (defface org-level-1
;; originally copied from font-lock-function-name-face
69 (org-compatible-face 'outline-1
70 '((((class color
) (min-colors 88) (background light
)) (:foreground
"Blue1"))
71 (((class color
) (min-colors 88) (background dark
)) (:foreground
"LightSkyBlue"))
72 (((class color
) (min-colors 16) (background light
)) (:foreground
"Blue"))
73 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightSkyBlue"))
74 (((class color
) (min-colors 8)) (:foreground
"blue" :bold t
))
76 "Face used for level 1 headlines."
79 (defface org-level-2
;; originally copied from font-lock-variable-name-face
80 (org-compatible-face 'outline-2
81 '((((class color
) (min-colors 16) (background light
)) (:foreground
"DarkGoldenrod"))
82 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightGoldenrod"))
83 (((class color
) (min-colors 8) (background light
)) (:foreground
"yellow"))
84 (((class color
) (min-colors 8) (background dark
)) (:foreground
"yellow" :bold t
))
86 "Face used for level 2 headlines."
89 (defface org-level-3
;; originally copied from font-lock-keyword-face
90 (org-compatible-face 'outline-3
91 '((((class color
) (min-colors 88) (background light
)) (:foreground
"Purple"))
92 (((class color
) (min-colors 88) (background dark
)) (:foreground
"Cyan1"))
93 (((class color
) (min-colors 16) (background light
)) (:foreground
"Purple"))
94 (((class color
) (min-colors 16) (background dark
)) (:foreground
"Cyan"))
95 (((class color
) (min-colors 8) (background light
)) (:foreground
"purple" :bold t
))
96 (((class color
) (min-colors 8) (background dark
)) (:foreground
"cyan" :bold t
))
98 "Face used for level 3 headlines."
101 (defface org-level-4
;; originally copied from font-lock-comment-face
102 (org-compatible-face 'outline-4
103 '((((class color
) (min-colors 88) (background light
)) (:foreground
"Firebrick"))
104 (((class color
) (min-colors 88) (background dark
)) (:foreground
"chocolate1"))
105 (((class color
) (min-colors 16) (background light
)) (:foreground
"red"))
106 (((class color
) (min-colors 16) (background dark
)) (:foreground
"red1"))
107 (((class color
) (min-colors 8) (background light
)) (:foreground
"red" :bold t
))
108 (((class color
) (min-colors 8) (background dark
)) (:foreground
"red" :bold t
))
110 "Face used for level 4 headlines."
113 (defface org-level-5
;; originally copied from font-lock-type-face
114 (org-compatible-face 'outline-5
115 '((((class color
) (min-colors 16) (background light
)) (:foreground
"ForestGreen"))
116 (((class color
) (min-colors 16) (background dark
)) (:foreground
"PaleGreen"))
117 (((class color
) (min-colors 8)) (:foreground
"green"))))
118 "Face used for level 5 headlines."
121 (defface org-level-6
;; originally copied from font-lock-constant-face
122 (org-compatible-face 'outline-6
123 '((((class color
) (min-colors 16) (background light
)) (:foreground
"CadetBlue"))
124 (((class color
) (min-colors 16) (background dark
)) (:foreground
"Aquamarine"))
125 (((class color
) (min-colors 8)) (:foreground
"magenta"))))
126 "Face used for level 6 headlines."
129 (defface org-level-7
;; originally copied from font-lock-builtin-face
130 (org-compatible-face 'outline-7
131 '((((class color
) (min-colors 16) (background light
)) (:foreground
"Orchid"))
132 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightSteelBlue"))
133 (((class color
) (min-colors 8)) (:foreground
"blue"))))
134 "Face used for level 7 headlines."
137 (defface org-level-8
;; originally copied from font-lock-string-face
138 (org-compatible-face 'outline-8
139 '((((class color
) (min-colors 16) (background light
)) (:foreground
"RosyBrown"))
140 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightSalmon"))
141 (((class color
) (min-colors 8)) (:foreground
"green"))))
142 "Face used for level 8 headlines."
145 (defface org-special-keyword
;; originally copied from font-lock-string-face
146 (org-compatible-face 'font-lock-keyword-face
147 '((((class color
) (min-colors 16) (background light
)) (:foreground
"RosyBrown"))
148 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightSalmon"))
150 "Face used for special keywords."
153 (defface org-drawer
;; originally copied from font-lock-function-name-face
154 (org-compatible-face nil
155 '((((class color
) (min-colors 88) (background light
)) (:foreground
"Blue1"))
156 (((class color
) (min-colors 88) (background dark
)) (:foreground
"LightSkyBlue"))
157 (((class color
) (min-colors 16) (background light
)) (:foreground
"Blue"))
158 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightSkyBlue"))
159 (((class color
) (min-colors 8)) (:foreground
"blue" :bold t
))
161 "Face used for drawers."
164 (defface org-property-value nil
165 "Face used for the value of a property."
169 (org-compatible-face nil
170 '((((class color
) (min-colors 16) (background light
))
171 (:background
"grey90" :weight normal
:slant normal
:strike-through nil
173 (((class color
) (min-colors 16) (background dark
))
174 (:background
"grey30" :weight normal
:slant normal
:strike-through nil
176 (((class color
) (min-colors 8))
177 (:background
"cyan" :foreground
"black"
178 :weight normal
:slant normal
:strike-through nil
180 (t (:inverse-video t
))))
181 "Face for column display of entry properties.
182 This is actually only part of the face definition for the text in column view.
183 The following faces apply, with this priority.
185 1. The color of the reference face. This is normally the level fact that
186 is used in the outline. In agenda-mode, it will be the face of the
187 first character in the line. The color is explicitly retained to
188 make sure that the column line still looks a bit like the structure
191 2. The `org-column' face.
193 3. The remaining properties of the reference face.
195 Since column view works by putting overlays with a display property
196 over individual characters in the buffer, the face of the underlining
197 character (this might for example be the a TODO keyword) might still
198 shine through in some properties. So when your column view looks
199 funny, with \"random\" colors, weight, strike-through, try to explicitly
200 set the properties in the `org-column' face. For example, set
201 :underline to nil, or the :slant to `normal'.
203 Under XEmacs, the rules are simpler, because the XEmacs version of
204 column view defines special faces for each outline level. See the file
205 `org-colview-xemacs.el' in Org's contrib/ directory for details."
208 (defface org-column-title
209 (org-compatible-face nil
210 '((((class color
) (min-colors 16) (background light
))
211 (:background
"grey90" :underline t
:weight bold
))
212 (((class color
) (min-colors 16) (background dark
))
213 (:background
"grey30" :underline t
:weight bold
))
214 (((class color
) (min-colors 8))
215 (:background
"cyan" :foreground
"black" :underline t
:weight bold
))
216 (t (:inverse-video t
))))
217 "Face for column display of entry properties."
220 (defface org-agenda-column-dateline
221 (org-compatible-face 'org-column
223 "Face used in agenda column view for datelines with summaries."
227 (org-compatible-face 'font-lock-warning-face
228 '((((class color
) (min-colors 16) (background light
)) (:foreground
"Red1" :bold t
))
229 (((class color
) (min-colors 16) (background dark
)) (:foreground
"Pink" :bold t
))
230 (((class color
) (min-colors 8) (background light
)) (:foreground
"red" :bold t
))
231 (((class color
) (min-colors 8) (background dark
)) (:foreground
"red" :bold t
))
233 "Face for deadlines and TODO keywords."
236 (defface org-archived
; similar to shadow
237 (org-compatible-face 'shadow
238 '((((class color grayscale
) (min-colors 88) (background light
))
239 (:foreground
"grey50"))
240 (((class color grayscale
) (min-colors 88) (background dark
))
241 (:foreground
"grey70"))
242 (((class color
) (min-colors 8) (background light
))
243 (:foreground
"green"))
244 (((class color
) (min-colors 8) (background dark
))
245 (:foreground
"yellow"))))
246 "Face for headline with the ARCHIVE tag."
250 (org-compatible-face 'link
251 '((((class color
) (background light
)) (:foreground
"Purple" :underline t
))
252 (((class color
) (background dark
)) (:foreground
"Cyan" :underline t
))
257 (defface org-footnote
258 '((((class color
) (background light
)) (:foreground
"Purple" :underline t
))
259 (((class color
) (background dark
)) (:foreground
"Cyan" :underline t
))
261 "Face for footnotes."
264 (defface org-ellipsis
265 '((((class color
) (background light
)) (:foreground
"DarkGoldenrod" :underline t
))
266 (((class color
) (background dark
)) (:foreground
"LightGoldenrod" :underline t
))
267 (t (:strike-through t
)))
268 "Face for the ellipsis in folded text."
272 '((((class color
) (background light
)) (:underline t
))
273 (((class color
) (background dark
)) (:underline t
))
275 "Face for link targets."
279 '((((class color
) (background light
)) (:foreground
"Purple" :underline t
))
280 (((class color
) (background dark
)) (:foreground
"Cyan" :underline t
))
282 "Face for date/time stamps."
285 (defface org-date-selected
286 (org-compatible-face nil
287 '((((class color
) (min-colors 16) (background light
)) (:foreground
"Red1" :inverse-video t
))
288 (((class color
) (min-colors 16) (background dark
)) (:foreground
"Pink" :inverse-video t
))
289 (((class color
) (min-colors 8) (background light
)) (:foreground
"red" :inverse-video t
))
290 (((class color
) (min-colors 8) (background dark
)) (:foreground
"red" :inverse-video t
))
291 (t (:inverse-video t
))))
292 "Face for highlighting the calendar day when using `org-read-date'.
293 Using a bold face here might cause discrepancies while displaying the
297 (defface org-sexp-date
298 '((((class color
) (background light
)) (:foreground
"Purple"))
299 (((class color
) (background dark
)) (:foreground
"Cyan"))
301 "Face for diary-like sexp date specifications."
306 "Default face for tags.
307 Note that the variable `org-tag-faces' can be used to overrule this face for
313 "Default face for definition terms in lists."
316 (defface org-todo
; font-lock-warning-face
317 (org-compatible-face nil
318 '((((class color
) (min-colors 16) (background light
)) (:foreground
"Red1" :bold t
))
319 (((class color
) (min-colors 16) (background dark
)) (:foreground
"Pink" :bold t
))
320 (((class color
) (min-colors 8) (background light
)) (:foreground
"red" :bold t
))
321 (((class color
) (min-colors 8) (background dark
)) (:foreground
"red" :bold t
))
322 (t (:inverse-video t
:bold t
))))
323 "Face for TODO keywords."
326 (defface org-done
;; originally copied from font-lock-type-face
327 (org-compatible-face nil
328 '((((class color
) (min-colors 16) (background light
)) (:foreground
"ForestGreen" :bold t
))
329 (((class color
) (min-colors 16) (background dark
)) (:foreground
"PaleGreen" :bold t
))
330 (((class color
) (min-colors 8)) (:foreground
"green"))
332 "Face used for todo keywords that indicate DONE items."
335 (defface org-agenda-done
;; originally copied from font-lock-type-face
336 (org-compatible-face nil
337 '((((class color
) (min-colors 16) (background light
)) (:foreground
"ForestGreen"))
338 (((class color
) (min-colors 16) (background dark
)) (:foreground
"PaleGreen"))
339 (((class color
) (min-colors 8)) (:foreground
"green"))
341 "Face used in agenda, to indicate lines switched to DONE.
342 This face is used to de-emphasize items that where brightly colored in the
343 agenda because they were things to do, or overdue. The DONE state itself
344 is of course immediately visible, but for example a passed deadline is
345 \(by default) very bright read. This face could be simply the default face
346 of the frame, for example."
349 (defface org-headline-done
;; originally copied from font-lock-string-face
350 (org-compatible-face nil
351 '((((class color
) (min-colors 16) (background light
)) (:foreground
"RosyBrown"))
352 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightSalmon"))
353 (((class color
) (min-colors 8) (background light
)) (:bold nil
))))
354 "Face used to indicate that a headline is DONE.
355 This face is only used if `org-fontify-done-headline' is set. If applies
356 to the part of the headline after the DONE keyword."
359 (defcustom org-faces-easy-properties
360 '((todo .
:foreground
) (tag .
:foreground
) (priority .
:foreground
))
361 "The property changes by easy faces.
362 This is an alist, the keys show the area of application, the values
363 can be `:foreground' or `:background'. A color string for special
364 keywords will then be interpreted as either foreground or background
370 (cons (choice (const todo
) (const tag
) (const priority
))
371 (choice (const :foreground
) (const :background
)))))
373 (defcustom org-todo-keyword-faces nil
374 "Faces for specific TODO keywords.
375 This is a list of cons cells, with TODO keywords in the car
376 and faces in the cdr. The face can be a symbol, a color
377 as a string (in which case the rest is inherited from the `org-todo' face),
378 or a property list of attributes, like
379 (:foreground \"blue\" :weight bold :underline t).
380 If it is a color string, the variable `org-faces-easy-properties'
381 determines if it is a foreground or a background color."
386 (string :tag
"Keyword")
388 (string :tag
"Color")
389 (sexp :tag
"Face")))))
391 (defface org-priority
;; originally copied from font-lock-string-face
392 (org-compatible-face 'font-lock-keyword-face
393 '((((class color
) (min-colors 16) (background light
)) (:foreground
"RosyBrown"))
394 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightSalmon"))
396 "Face used for priority cookies."
399 (defcustom org-priority-faces nil
400 "Faces for specific Priorities.
401 This is a list of cons cells, with priority character in the car
402 and faces in the cdr. The face can be a symbol, a color as
403 as a string, or a property list of attributes, like
404 (:foreground \"blue\" :weight bold :underline t).
405 If it is a color string, the variable `org-faces-easy-properties'
406 determines if it is a foreground or a background color."
411 (character :tag
"Priority")
413 (string :tag
"Color")
414 (sexp :tag
"Face")))))
416 (defvar org-tags-special-faces-re nil
)
417 (defun org-set-tag-faces (var value
)
420 (setq org-tags-special-faces-re nil
)
421 (setq org-tags-special-faces-re
422 (concat ":\\(" (mapconcat 'car value
"\\|") "\\):"))))
424 (defface org-checkbox
425 (org-compatible-face 'bold
427 "Face for checkboxes."
431 (org-copy-face 'org-todo
'org-checkbox-statistics-todo
432 "Face used for unfinished checkbox statistics.")
434 (org-copy-face 'org-done
'org-checkbox-statistics-done
435 "Face used for finished checkbox statistics.")
437 (defcustom org-tag-faces nil
438 "Faces for specific tags.
439 This is a list of cons cells, with tags in the car and faces in the cdr.
440 The face can be a symbol, a foreground color (in which case the rest is
441 inherited from the `org-tag' face) or a property list of attributes,
442 like (:foreground \"blue\" :weight bold :underline t).
443 If you set this variable through customize, it will immediately be effective
444 in new buffers and in modified lines.
445 If you set it with Lisp, a restart of Emacs is required to activate the
449 :set
'org-set-tag-faces
454 (string :tag
"Foreground color")
455 (sexp :tag
"Face")))))
457 (defface org-table
;; originally copied from font-lock-function-name-face
458 (org-compatible-face nil
459 '((((class color
) (min-colors 88) (background light
)) (:foreground
"Blue1"))
460 (((class color
) (min-colors 88) (background dark
)) (:foreground
"LightSkyBlue"))
461 (((class color
) (min-colors 16) (background light
)) (:foreground
"Blue"))
462 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightSkyBlue"))
463 (((class color
) (min-colors 8) (background light
)) (:foreground
"blue"))
464 (((class color
) (min-colors 8) (background dark
)))))
465 "Face used for tables."
469 (org-compatible-face nil
470 '((((class color
) (min-colors 88) (background light
)) (:foreground
"Firebrick"))
471 (((class color
) (min-colors 88) (background dark
)) (:foreground
"chocolate1"))
472 (((class color
) (min-colors 8) (background light
)) (:foreground
"red"))
473 (((class color
) (min-colors 8) (background dark
)) (:foreground
"red"))
474 (t (:bold t
:italic t
))))
479 (org-compatible-face 'shadow
480 '((((class color grayscale
) (min-colors 88) (background light
))
481 (:foreground
"grey50"))
482 (((class color grayscale
) (min-colors 88) (background dark
))
483 (:foreground
"grey70"))
484 (((class color
) (min-colors 8) (background light
))
485 (:foreground
"green"))
486 (((class color
) (min-colors 8) (background dark
))
487 (:foreground
"yellow"))))
488 "Face for fixed-width text like code snippets."
492 (defface org-meta-line
493 (org-compatible-face 'font-lock-comment-face nil
)
494 "Face for meta lines startin with \"#+\"."
498 (defface org-document-title
499 '((((class color
) (background light
)) (:foreground
"midnight blue" :weight bold
))
500 (((class color
) (background dark
)) (:foreground
"pale turquoise" :weight bold
))
502 "Face for document title, i.e. that which follows the #+TITLE: keyword."
505 (defface org-document-info
506 '((((class color
) (background light
)) (:foreground
"midnight blue"))
507 (((class color
) (background dark
)) (:foreground
"pale turquoise"))
509 "Face for document date, author and email; i.e. that which
510 follows a #+DATE:, #+AUTHOR: or #+EMAIL: keyword."
513 (defface org-document-info-keyword
514 (org-compatible-face 'shadow
515 '((((class color grayscale
) (min-colors 88) (background light
))
516 (:foreground
"grey50"))
517 (((class color grayscale
) (min-colors 88) (background dark
))
518 (:foreground
"grey70"))
519 (((class color
) (min-colors 8) (background light
))
520 (:foreground
"green"))
521 (((class color
) (min-colors 8) (background dark
))
522 (:foreground
"yellow"))))
523 "Face for #+TITLE:, #+AUTHOR:, #+EMAIL: and #+DATE: keywords."
527 (org-compatible-face 'shadow
528 '((((class color grayscale
) (min-colors 88) (background light
))
529 (:foreground
"grey50"))
530 (((class color grayscale
) (min-colors 88) (background dark
))
531 (:foreground
"grey70"))
532 (((class color
) (min-colors 8) (background light
))
533 (:foreground
"green"))
534 (((class color
) (min-colors 8) (background dark
))
535 (:foreground
"yellow"))))
536 "Face text in #+begin ... #+end blocks."
540 (org-copy-face 'org-meta-line
'org-block-begin-line
541 "Face used for the line delimiting the begin of source blocks.")
543 (org-copy-face 'org-meta-line
'org-block-end-line
544 "Face used for the line delimiting the end of source blocks.")
546 (defface org-verbatim
547 (org-compatible-face 'shadow
548 '((((class color grayscale
) (min-colors 88) (background light
))
549 (:foreground
"grey50" :underline t
))
550 (((class color grayscale
) (min-colors 88) (background dark
))
551 (:foreground
"grey70" :underline t
))
552 (((class color
) (min-colors 8) (background light
))
553 (:foreground
"green" :underline t
))
554 (((class color
) (min-colors 8) (background dark
))
555 (:foreground
"yellow" :underline t
))))
556 "Face for fixed-with text like code snippets."
560 (org-copy-face 'org-block
'org-quote
561 "Face for #+BEGIN_QUOTE ... #+END_QUOTE blocks.")
562 (org-copy-face 'org-block
'org-verse
563 "Face for #+BEGIN_VERSE ... #+END_VERSE blocks.")
565 (defcustom org-fontify-quote-and-verse-blocks nil
566 "Non-nil means, add a special face to #+begin_quote and #+begin_verse block.
567 When nil, format these as normal Org. This is the default, because the
568 content of these blocks will still be treated as Org syntax."
573 (defface org-clock-overlay
;; copied from secondary-selection
574 (org-compatible-face nil
575 '((((class color
) (min-colors 88) (background light
))
576 (:background
"LightGray" :foreground
"black"))
577 (((class color
) (min-colors 88) (background dark
))
578 (:background
"SkyBlue4" :foreground
"white"))
579 (((class color
) (min-colors 16) (background light
))
580 (:background
"gray" :foreground
"black"))
581 (((class color
) (min-colors 16) (background dark
))
582 (:background
"SkyBlue4" :foreground
"white"))
583 (((class color
) (min-colors 8))
584 (:background
"cyan" :foreground
"black"))
585 (t (:inverse-video t
))))
586 "Basic face for displaying the secondary selection."
589 (defface org-agenda-structure
;; originally copied from font-lock-function-name-face
590 (org-compatible-face nil
591 '((((class color
) (min-colors 88) (background light
)) (:foreground
"Blue1"))
592 (((class color
) (min-colors 88) (background dark
)) (:foreground
"LightSkyBlue"))
593 (((class color
) (min-colors 16) (background light
)) (:foreground
"Blue"))
594 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightSkyBlue"))
595 (((class color
) (min-colors 8)) (:foreground
"blue" :bold t
))
597 "Face used in agenda for captions and dates."
600 (org-copy-face 'org-agenda-structure
'org-agenda-date
601 "Face used in agenda for normal days.")
603 (org-copy-face 'org-agenda-date
'org-agenda-date-today
604 "Face used in agenda for today."
605 :weight
'bold
:italic
't
)
607 (org-copy-face 'secondary-selection
'org-agenda-clocking
608 "Face marking the current clock item in the agenda.")
610 (org-copy-face 'org-agenda-date
'org-agenda-date-weekend
611 "Face used in agenda for weekend days.
612 See the variable `org-agenda-weekend-days' for a definition of which days
613 belong to the weekend."
616 (defface org-scheduled
617 (org-compatible-face nil
618 '((((class color
) (min-colors 88) (background light
)) (:foreground
"DarkGreen"))
619 (((class color
) (min-colors 88) (background dark
)) (:foreground
"PaleGreen"))
620 (((class color
) (min-colors 8)) (:foreground
"green"))
621 (t (:bold t
:italic t
))))
622 "Face for items scheduled for a certain day."
625 (defface org-scheduled-today
626 (org-compatible-face nil
627 '((((class color
) (min-colors 88) (background light
)) (:foreground
"DarkGreen"))
628 (((class color
) (min-colors 88) (background dark
)) (:foreground
"PaleGreen"))
629 (((class color
) (min-colors 8)) (:foreground
"green"))
630 (t (:bold t
:italic t
))))
631 "Face for items scheduled for a certain day."
634 (defface org-agenda-dimmed-todo-face
635 '((((background light
)) (:foreground
"grey50"))
636 (((background dark
)) (:foreground
"grey50")))
637 "Face used to dim blocked tasks in the agenda."
640 (defface org-scheduled-previously
641 (org-compatible-face nil
642 '((((class color
) (min-colors 88) (background light
)) (:foreground
"Firebrick"))
643 (((class color
) (min-colors 88) (background dark
)) (:foreground
"chocolate1"))
644 (((class color
) (min-colors 8) (background light
)) (:foreground
"red"))
645 (((class color
) (min-colors 8) (background dark
)) (:foreground
"red" :bold t
))
647 "Face for items scheduled previously, and not yet done."
650 (defface org-upcoming-deadline
651 (org-compatible-face nil
652 '((((class color
) (min-colors 88) (background light
)) (:foreground
"Firebrick"))
653 (((class color
) (min-colors 88) (background dark
)) (:foreground
"chocolate1"))
654 (((class color
) (min-colors 8) (background light
)) (:foreground
"red"))
655 (((class color
) (min-colors 8) (background dark
)) (:foreground
"red" :bold t
))
657 "Face for items scheduled previously, and not yet done."
660 (defcustom org-agenda-deadline-faces
661 '((1.0 . org-warning
)
662 (0.5 . org-upcoming-deadline
)
664 "Faces for showing deadlines in the agenda.
665 This is a list of cons cells. The cdr of each cell is a face to be used,
666 and it can also just be like '(:foreground \"yellow\").
667 Each car is a fraction of the head-warning time that must have passed for
668 this the face in the cdr to be used for display. The numbers must be
669 given in descending order. The head-warning time is normally taken
670 from `org-deadline-warning-days', but can also be specified in the deadline
671 timestamp itself, like this:
673 DEADLINE: <2007-08-13 Mon -8d>
675 You may use d for days, w for weeks, m for months and y for years. Months
676 and years will only be treated in an approximate fashion (30.4 days for a
677 month and 365.24 days for a year)."
679 :group
'org-agenda-daily
/weekly
682 (number :tag
"Fraction of head-warning time passed")
683 (sexp :tag
"Face"))))
685 (defface org-agenda-restriction-lock
686 (org-compatible-face nil
687 '((((class color
) (min-colors 88) (background light
)) (:background
"#eeeeee"))
688 (((class color
) (min-colors 88) (background dark
)) (:background
"#1C1C1C"))
689 (((class color
) (min-colors 16) (background light
)) (:background
"#eeeeee"))
690 (((class color
) (min-colors 16) (background dark
)) (:background
"#1C1C1C"))
691 (((class color
) (min-colors 8)) (:background
"cyan" :foreground
"black"))
692 (t (:inverse-video t
))))
693 "Face for showing the agenda restriction lock."
696 (defface org-agenda-filter-tags
697 (org-compatible-face 'mode-line nil
)
698 "Face for tag(s) in the mode-line when filtering the agenda."
701 (defface org-agenda-filter-regexp
702 (org-compatible-face 'mode-line nil
)
703 "Face for regexp(s) in the mode-line when filtering the agenda."
706 (defface org-agenda-filter-category
707 (org-compatible-face 'mode-line nil
)
708 "Face for categories(s) in the mode-line when filtering the agenda."
711 (defface org-time-grid
;; originally copied from font-lock-variable-name-face
712 (org-compatible-face nil
713 '((((class color
) (min-colors 16) (background light
)) (:foreground
"DarkGoldenrod"))
714 (((class color
) (min-colors 16) (background dark
)) (:foreground
"LightGoldenrod"))
715 (((class color
) (min-colors 8)) (:foreground
"yellow" :weight light
))))
716 "Face used for time grids."
719 (org-copy-face 'org-time-grid
'org-agenda-current-time
720 "Face used to show the current time in the time grid.")
722 (defface org-agenda-diary
723 (org-compatible-face 'default nil
)
724 "Face used for agenda entries that come from the Emacs diary."
727 (defface org-agenda-calendar-event
728 (org-compatible-face 'default nil
)
729 "Face used to show events and appointments in the agenda."
732 (defface org-agenda-calendar-sexp
733 (org-compatible-face 'default nil
)
734 "Face used to show events computed from a S-expression."
737 (defconst org-level-faces
738 '(org-level-1 org-level-2 org-level-3 org-level-4
739 org-level-5 org-level-6 org-level-7 org-level-8
742 (defcustom org-n-level-faces
(length org-level-faces
)
743 "The number of different faces to be used for headlines.
744 Org-mode defines 8 different headline faces, so this can be at most 8.
745 If it is less than 8, the level-1 face gets re-used for level N+1 etc."
749 (defcustom org-cycle-level-faces t
750 "Non-nil means level styles cycle after level `org-n-level-faces'.
751 Then so level org-n-level-faces+1 is styled like level 1.
752 If nil, then all levels >=org-n-level-faces are styled like
753 level org-n-level-faces"
754 :group
'org-appearance
759 (defface org-latex-and-related
760 (let ((font (cond ((assq :inherit custom-face-attributes
)
761 '(:inherit underline
))
762 (t '(:underline t
)))))
763 `((((class grayscale
) (background light
))
764 (:foreground
"DimGray" ,@font
))
765 (((class grayscale
) (background dark
))
766 (:foreground
"LightGray" ,@font
))
767 (((class color
) (background light
))
768 (:foreground
"SaddleBrown"))
769 (((class color
) (background dark
))
770 (:foreground
"burlywood"))
772 "Face used to highlight LaTeX data, entities and sub/superscript."
775 :package-version
'(Org .
"8.0"))
778 (org-compatible-face 'org-latex-and-related nil
)
782 :package-version
'(Org .
"8.0"))
784 (defface org-tag-group
785 (org-compatible-face 'org-tag nil
)
786 "Face for group tags."
789 :package-version
'(Org .
"8.0"))
791 (org-copy-face 'mode-line
'org-mode-line-clock
792 "Face used for clock display in mode line.")
793 (org-copy-face 'mode-line
'org-mode-line-clock-overrun
794 "Face used for clock display for overrun tasks in mode line."
799 ;;; org-faces.el ends here