org-babel: make [:file filename] imply [:exports results]
[rgr-org-mode.git] / lisp / org-faces.el
blobf802c6575fca78f677684b44cdc7baa0008324a6
1 ;;; org-faces.el --- Face definitions for Org-mode.
3 ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009
4 ;; Free Software Foundation, Inc.
6 ;; Author: Carsten Dominik <carsten at orgmode dot org>
7 ;; Keywords: outlines, hypermedia, calendar, wp
8 ;; Homepage: http://orgmode.org
9 ;; Version: 6.31trans
11 ;; This file is part of GNU Emacs.
13 ;; GNU Emacs is free software: you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by
15 ;; the Free Software Foundation, either version 3 of the License, or
16 ;; (at your option) any later version.
18 ;; GNU Emacs is distributed in the hope that it will be useful,
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;; GNU General Public License for more details.
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
27 ;;; Commentary:
29 ;; This file contains the face definitions for Org.
31 ;;; Code:
33 (require 'org-macs)
34 (require 'org-compat)
36 (defun org-copy-face (old-face new-face docstring &rest attributes)
37 (unless (facep new-face)
38 (if (fboundp 'set-face-attribute)
39 (progn
40 (make-face new-face)
41 (set-face-attribute new-face nil :inherit old-face)
42 (apply 'set-face-attribute new-face nil attributes)
43 (set-face-doc-string new-face docstring))
44 (copy-face old-face new-face)
45 (if (fboundp 'set-face-doc-string)
46 (set-face-doc-string new-face docstring)))))
48 (defgroup org-faces nil
49 "Faces in Org-mode."
50 :tag "Org Faces"
51 :group 'org-font-lock)
53 (defface org-hide
54 '((((background light)) (:foreground "white"))
55 (((background dark)) (:foreground "black")))
56 "Face used to hide leading stars in headlines.
57 The foreground color of this face should be equal to the background
58 color of the frame."
59 :group 'org-faces)
61 (defface org-level-1 ;; originally copied from font-lock-function-name-face
62 (org-compatible-face 'outline-1
63 '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
64 (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
65 (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
66 (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
67 (((class color) (min-colors 8)) (:foreground "blue" :bold t))
68 (t (:bold t))))
69 "Face used for level 1 headlines."
70 :group 'org-faces)
72 (defface org-level-2 ;; originally copied from font-lock-variable-name-face
73 (org-compatible-face 'outline-2
74 '((((class color) (min-colors 16) (background light)) (:foreground "DarkGoldenrod"))
75 (((class color) (min-colors 16) (background dark)) (:foreground "LightGoldenrod"))
76 (((class color) (min-colors 8) (background light)) (:foreground "yellow"))
77 (((class color) (min-colors 8) (background dark)) (:foreground "yellow" :bold t))
78 (t (:bold t))))
79 "Face used for level 2 headlines."
80 :group 'org-faces)
82 (defface org-level-3 ;; originally copied from font-lock-keyword-face
83 (org-compatible-face 'outline-3
84 '((((class color) (min-colors 88) (background light)) (:foreground "Purple"))
85 (((class color) (min-colors 88) (background dark)) (:foreground "Cyan1"))
86 (((class color) (min-colors 16) (background light)) (:foreground "Purple"))
87 (((class color) (min-colors 16) (background dark)) (:foreground "Cyan"))
88 (((class color) (min-colors 8) (background light)) (:foreground "purple" :bold t))
89 (((class color) (min-colors 8) (background dark)) (:foreground "cyan" :bold t))
90 (t (:bold t))))
91 "Face used for level 3 headlines."
92 :group 'org-faces)
94 (defface org-level-4 ;; originally copied from font-lock-comment-face
95 (org-compatible-face 'outline-4
96 '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
97 (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
98 (((class color) (min-colors 16) (background light)) (:foreground "red"))
99 (((class color) (min-colors 16) (background dark)) (:foreground "red1"))
100 (((class color) (min-colors 8) (background light)) (:foreground "red" :bold t))
101 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
102 (t (:bold t))))
103 "Face used for level 4 headlines."
104 :group 'org-faces)
106 (defface org-level-5 ;; originally copied from font-lock-type-face
107 (org-compatible-face 'outline-5
108 '((((class color) (min-colors 16) (background light)) (:foreground "ForestGreen"))
109 (((class color) (min-colors 16) (background dark)) (:foreground "PaleGreen"))
110 (((class color) (min-colors 8)) (:foreground "green"))))
111 "Face used for level 5 headlines."
112 :group 'org-faces)
114 (defface org-level-6 ;; originally copied from font-lock-constant-face
115 (org-compatible-face 'outline-6
116 '((((class color) (min-colors 16) (background light)) (:foreground "CadetBlue"))
117 (((class color) (min-colors 16) (background dark)) (:foreground "Aquamarine"))
118 (((class color) (min-colors 8)) (:foreground "magenta"))))
119 "Face used for level 6 headlines."
120 :group 'org-faces)
122 (defface org-level-7 ;; originally copied from font-lock-builtin-face
123 (org-compatible-face 'outline-7
124 '((((class color) (min-colors 16) (background light)) (:foreground "Orchid"))
125 (((class color) (min-colors 16) (background dark)) (:foreground "LightSteelBlue"))
126 (((class color) (min-colors 8)) (:foreground "blue"))))
127 "Face used for level 7 headlines."
128 :group 'org-faces)
130 (defface org-level-8 ;; originally copied from font-lock-string-face
131 (org-compatible-face 'outline-8
132 '((((class color) (min-colors 16) (background light)) (:foreground "RosyBrown"))
133 (((class color) (min-colors 16) (background dark)) (:foreground "LightSalmon"))
134 (((class color) (min-colors 8)) (:foreground "green"))))
135 "Face used for level 8 headlines."
136 :group 'org-faces)
138 (defface org-special-keyword ;; originally copied from font-lock-string-face
139 (org-compatible-face nil
140 '((((class color) (min-colors 16) (background light)) (:foreground "RosyBrown"))
141 (((class color) (min-colors 16) (background dark)) (:foreground "LightSalmon"))
142 (t (:italic t))))
143 "Face used for special keywords."
144 :group 'org-faces)
146 (defface org-drawer ;; originally copied from font-lock-function-name-face
147 (org-compatible-face nil
148 '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
149 (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
150 (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
151 (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
152 (((class color) (min-colors 8)) (:foreground "blue" :bold t))
153 (t (:bold t))))
154 "Face used for drawers."
155 :group 'org-faces)
157 (defface org-property-value nil
158 "Face used for the value of a property."
159 :group 'org-faces)
161 (defface org-column
162 (org-compatible-face nil
163 '((((class color) (min-colors 16) (background light))
164 (:background "grey90" :weight normal :slant normal :strike-through nil
165 :underline nil))
166 (((class color) (min-colors 16) (background dark))
167 (:background "grey30" :weight normal :slant normal :strike-through nil
168 :underline nil))
169 (((class color) (min-colors 8))
170 (:background "cyan" :foreground "black"
171 :weight normal :slant normal :strike-through nil
172 :underline nil))
173 (t (:inverse-video t))))
174 "Face for column display of entry properties.
175 This is actually only part of the face definition for the text in column view.
176 The following faces apply, with this priority.
178 1. The color of the reference face. This is normally the level fact that
179 is used in the outline. In agenda-mode, it will be the face of the
180 first character in the line. The color is explicitly retained to
181 make sure that the column line still looks a bit like the structure
182 line it is masking.
184 2. The `org-column' face.
186 3. The remaining properties of the reference face.
188 Since column view works by putting overlays with a display property
189 over individual characters in the buffer, the face of the underlining
190 character (this might for example be the a TODO keyword) might still
191 shine through in some properties. So when your column view looks
192 funny, with \"random\" colors, weight, strike-through, try to explicitly
193 set the properties in the `org-column' face. For example, set
194 :underline to nil, or the :slant to `normal'.
196 Under XEmacs, the rules are simpler, because the XEmacs version of
197 column view defines special faces for each outline level. See the file
198 `org-colview-xemacs.el' for details."
199 :group 'org-faces)
201 (defface org-column-title
202 (org-compatible-face nil
203 '((((class color) (min-colors 16) (background light))
204 (:background "grey90" :underline t :weight bold))
205 (((class color) (min-colors 16) (background dark))
206 (:background "grey30" :underline t :weight bold))
207 (((class color) (min-colors 8))
208 (:background "cyan" :foreground "black" :underline t :weight bold))
209 (t (:inverse-video t))))
210 "Face for column display of entry properties."
211 :group 'org-faces)
213 (when (fboundp 'set-face-attribute)
214 ;; Make sure that a fixed-width face is used when we have a column table.
215 (set-face-attribute 'org-column nil
216 :height (face-attribute 'default :height)
217 :family (face-attribute 'default :family)))
219 (defface org-agenda-column-dateline
220 (org-compatible-face 'org-column
221 '((t nil)))
222 "Face used in agenda column view for datelines with summaries."
223 :group 'org-faces)
225 (defface org-warning
226 (org-compatible-face 'font-lock-warning-face
227 '((((class color) (min-colors 16) (background light)) (:foreground "Red1" :bold t))
228 (((class color) (min-colors 16) (background dark)) (:foreground "Pink" :bold t))
229 (((class color) (min-colors 8) (background light)) (:foreground "red" :bold t))
230 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
231 (t (:bold t))))
232 "Face for deadlines and TODO keywords."
233 :group 'org-faces)
235 (defface org-archived ; similar to shadow
236 (org-compatible-face 'shadow
237 '((((class color grayscale) (min-colors 88) (background light))
238 (:foreground "grey50"))
239 (((class color grayscale) (min-colors 88) (background dark))
240 (:foreground "grey70"))
241 (((class color) (min-colors 8) (background light))
242 (:foreground "green"))
243 (((class color) (min-colors 8) (background dark))
244 (:foreground "yellow"))))
245 "Face for headline with the ARCHIVE tag."
246 :group 'org-faces)
248 (defface org-link
249 '((((class color) (background light)) (:foreground "Purple" :underline t))
250 (((class color) (background dark)) (:foreground "Cyan" :underline t))
251 (t (:underline t)))
252 "Face for links."
253 :group 'org-faces)
255 (defface org-footnote
256 '((((class color) (background light)) (:foreground "Purple" :underline t))
257 (((class color) (background dark)) (:foreground "Cyan" :underline t))
258 (t (:underline t)))
259 "Face for links."
260 :group 'org-faces)
262 (defface org-ellipsis
263 '((((class color) (background light)) (:foreground "DarkGoldenrod" :underline t))
264 (((class color) (background dark)) (:foreground "LightGoldenrod" :underline t))
265 (t (:strike-through t)))
266 "Face for the ellipsis in folded text."
267 :group 'org-faces)
269 (defface org-target
270 '((((class color) (background light)) (:underline t))
271 (((class color) (background dark)) (:underline t))
272 (t (:underline t)))
273 "Face for link targets."
274 :group 'org-faces)
276 (defface org-date
277 '((((class color) (background light)) (:foreground "Purple" :underline t))
278 (((class color) (background dark)) (:foreground "Cyan" :underline t))
279 (t (:underline t)))
280 "Face for date/time stamps."
281 :group 'org-faces)
283 (defface org-sexp-date
284 '((((class color) (background light)) (:foreground "Purple"))
285 (((class color) (background dark)) (:foreground "Cyan"))
286 (t (:underline t)))
287 "Face for diary-like sexp date specifications."
288 :group 'org-faces)
290 (defface org-tag
291 '((t (:bold t)))
292 "Default face for tags.
293 Note that the variable `org-tag-faces' can be used to overrule this face for
294 specific tags."
295 :group 'org-faces)
297 (defface org-todo ; font-lock-warning-face
298 (org-compatible-face nil
299 '((((class color) (min-colors 16) (background light)) (:foreground "Red1" :bold t))
300 (((class color) (min-colors 16) (background dark)) (:foreground "Pink" :bold t))
301 (((class color) (min-colors 8) (background light)) (:foreground "red" :bold t))
302 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
303 (t (:inverse-video t :bold t))))
304 "Face for TODO keywords."
305 :group 'org-faces)
307 (defface org-done ;; originally copied from font-lock-type-face
308 (org-compatible-face nil
309 '((((class color) (min-colors 16) (background light)) (:foreground "ForestGreen" :bold t))
310 (((class color) (min-colors 16) (background dark)) (:foreground "PaleGreen" :bold t))
311 (((class color) (min-colors 8)) (:foreground "green"))
312 (t (:bold t))))
313 "Face used for todo keywords that indicate DONE items."
314 :group 'org-faces)
316 (defface org-agenda-done ;; originally copied from font-lock-type-face
317 (org-compatible-face nil
318 '((((class color) (min-colors 16) (background light)) (:foreground "ForestGreen"))
319 (((class color) (min-colors 16) (background dark)) (:foreground "PaleGreen"))
320 (((class color) (min-colors 8)) (:foreground "green"))
321 (t (:bold nil))))
322 "Face used in agenda, to indicate lines switched to DONE.
323 This face is used to de-emphasize items that where brightly colord in the
324 agenda because they were things to do, or overdue. The DONE state itself
325 is of course immediately visible, but for example a passed deadline is
326 \(by default) very bright read. This face could be simply the default face
327 of the frame, for example."
328 :group 'org-faces)
330 (defface org-headline-done ;; originally copied from font-lock-string-face
331 (org-compatible-face nil
332 '((((class color) (min-colors 16) (background light)) (:foreground "RosyBrown"))
333 (((class color) (min-colors 16) (background dark)) (:foreground "LightSalmon"))
334 (((class color) (min-colors 8) (background light)) (:bold nil))))
335 "Face used to indicate that a headline is DONE.
336 This face is only used if `org-fontify-done-headline' is set. If applies
337 to the part of the headline after the DONE keyword."
338 :group 'org-faces)
340 (defcustom org-todo-keyword-faces nil
341 "Faces for specific TODO keywords.
342 This is a list of cons cells, with TODO keywords in the car
343 and faces in the cdr. The face can be a symbol, or a property
344 list of attributes, like (:foreground \"blue\" :weight bold :underline t)."
345 :group 'org-faces
346 :group 'org-todo
347 :type '(repeat
348 (cons
349 (string :tag "keyword")
350 (sexp :tag "face"))))
352 (defcustom org-priority-faces nil
353 "Faces for specific Priorities.
354 This is a list of cons cells, with priority character in the car
355 and faces in the cdr. The face can be a symbol, or a property
356 list of attributes, like (:foreground \"blue\" :weight bold :underline t)."
357 :group 'org-faces
358 :group 'org-todo
359 :type '(repeat
360 (cons
361 (character :tag "Priority")
362 (sexp :tag "face"))))
364 (defvar org-tags-special-faces-re nil)
365 (defun org-set-tag-faces (var value)
366 (set var value)
367 (if (not value)
368 (setq org-tags-special-faces-re nil)
369 (setq org-tags-special-faces-re
370 (concat ":\\(" (mapconcat 'car value "\\|") "\\):"))))
372 (defface org-checkbox
373 (org-compatible-face 'bold
374 '((t (:bold t))))
375 "Face for checkboxes"
376 :group 'org-faces)
379 (org-copy-face 'org-todo 'org-checkbox-statistics-todo
380 "Face used for unfinished checkbox statistics.")
382 (org-copy-face 'org-done 'org-checkbox-statistics-done
383 "Face used for finished checkbox statistics.")
385 (defcustom org-tag-faces nil
386 "Faces for specific tags.
387 This is a list of cons cells, with tags in the car and faces in the cdr.
388 The face can be a symbol, or a property list of attributes,
389 like (:foreground \"blue\" :weight bold :underline t).
390 If you set this variable through customize, it will immediately be effective
391 in new buffers and in modified lines.
392 If you set it with Lisp, a restart of Emacs is required to activate the
393 changes."
394 :group 'org-faces
395 :group 'org-tags
396 :set 'org-set-tag-faces
397 :type '(repeat
398 (cons
399 (string :tag "Tag")
400 (sexp :tag "Face"))))
402 (defface org-table ;; originally copied from font-lock-function-name-face
403 (org-compatible-face nil
404 '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
405 (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
406 (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
407 (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
408 (((class color) (min-colors 8) (background light)) (:foreground "blue"))
409 (((class color) (min-colors 8) (background dark)))))
410 "Face used for tables."
411 :group 'org-faces)
413 (defface org-formula
414 (org-compatible-face nil
415 '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
416 (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
417 (((class color) (min-colors 8) (background light)) (:foreground "red"))
418 (((class color) (min-colors 8) (background dark)) (:foreground "red"))
419 (t (:bold t :italic t))))
420 "Face for formulas."
421 :group 'org-faces)
423 (defface org-code
424 (org-compatible-face 'shadow
425 '((((class color grayscale) (min-colors 88) (background light))
426 (:foreground "grey50"))
427 (((class color grayscale) (min-colors 88) (background dark))
428 (:foreground "grey70"))
429 (((class color) (min-colors 8) (background light))
430 (:foreground "green"))
431 (((class color) (min-colors 8) (background dark))
432 (:foreground "yellow"))))
433 "Face for fixed-with text like code snippets."
434 :group 'org-faces
435 :version "22.1")
437 (defface org-meta-line
438 (org-compatible-face 'font-lock-comment-face nil)
439 "Face for meta lines startin with \"#+\"."
440 :group 'org-faces
441 :version "22.1")
443 (defface org-block
444 (org-compatible-face 'shadow
445 '((((class color grayscale) (min-colors 88) (background light))
446 (:foreground "grey50"))
447 (((class color grayscale) (min-colors 88) (background dark))
448 (:foreground "grey70"))
449 (((class color) (min-colors 8) (background light))
450 (:foreground "green"))
451 (((class color) (min-colors 8) (background dark))
452 (:foreground "yellow"))))
453 "Face text in #+begin ... #+end blocks."
454 :group 'org-faces
455 :version "22.1")
457 (defface org-verbatim
458 (org-compatible-face 'shadow
459 '((((class color grayscale) (min-colors 88) (background light))
460 (:foreground "grey50" :underline t))
461 (((class color grayscale) (min-colors 88) (background dark))
462 (:foreground "grey70" :underline t))
463 (((class color) (min-colors 8) (background light))
464 (:foreground "green" :underline t))
465 (((class color) (min-colors 8) (background dark))
466 (:foreground "yellow" :underline t))))
467 "Face for fixed-with text like code snippets."
468 :group 'org-faces
469 :version "22.1")
471 (defface org-clock-overlay ;; copied from secondary-selection
472 (org-compatible-face nil
473 '((((class color) (min-colors 88) (background light))
474 (:background "yellow1"))
475 (((class color) (min-colors 88) (background dark))
476 (:background "SkyBlue4"))
477 (((class color) (min-colors 16) (background light))
478 (:background "yellow"))
479 (((class color) (min-colors 16) (background dark))
480 (:background "SkyBlue4"))
481 (((class color) (min-colors 8))
482 (:background "cyan" :foreground "black"))
483 (t (:inverse-video t))))
484 "Basic face for displaying the secondary selection."
485 :group 'org-faces)
487 (defface org-agenda-structure ;; originally copied from font-lock-function-name-face
488 (org-compatible-face nil
489 '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
490 (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
491 (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
492 (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
493 (((class color) (min-colors 8)) (:foreground "blue" :bold t))
494 (t (:bold t))))
495 "Face used in agenda for captions and dates."
496 :group 'org-faces)
498 (org-copy-face 'org-agenda-structure 'org-agenda-date
499 "Face used in agenda for normal days.")
501 (org-copy-face 'org-agenda-date 'org-agenda-date-today
502 "Face used in agenda for today."
503 :weight 'bold :italic 't)
505 (org-copy-face 'secondary-selection 'org-agenda-clocking
506 "Face marking the current clock item in the agenda.")
508 (org-copy-face 'org-agenda-date 'org-agenda-date-weekend
509 "Face used in agenda for weekend days.
510 See the variable `org-agenda-weekend-days' for a definition of which days
511 belong to the weekend."
512 :weight 'bold)
514 (defface org-scheduled
515 (org-compatible-face nil
516 '((((class color) (min-colors 88) (background light)) (:foreground "DarkGreen"))
517 (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen"))
518 (((class color) (min-colors 8)) (:foreground "green"))
519 (t (:bold t :italic t))))
520 "Face for items scheduled for a certain day."
521 :group 'org-faces)
523 (defface org-scheduled-today
524 (org-compatible-face nil
525 '((((class color) (min-colors 88) (background light)) (:foreground "DarkGreen"))
526 (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen"))
527 (((class color) (min-colors 8)) (:foreground "green"))
528 (t (:bold t :italic t))))
529 "Face for items scheduled for a certain day."
530 :group 'org-faces)
532 (defface org-agenda-dimmed-todo-face
533 '((((background light)) (:foreground "grey50"))
534 (((background dark)) (:foreground "grey50")))
535 "Face used to dimm blocked tasks in the agenda."
536 :group 'org-faces)
538 (defface org-scheduled-previously
539 (org-compatible-face nil
540 '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
541 (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
542 (((class color) (min-colors 8) (background light)) (:foreground "red"))
543 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
544 (t (:bold t))))
545 "Face for items scheduled previously, and not yet done."
546 :group 'org-faces)
548 (defface org-upcoming-deadline
549 (org-compatible-face nil
550 '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
551 (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
552 (((class color) (min-colors 8) (background light)) (:foreground "red"))
553 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
554 (t (:bold t))))
555 "Face for items scheduled previously, and not yet done."
556 :group 'org-faces)
558 (defcustom org-agenda-deadline-faces
559 '((1.0 . org-warning)
560 (0.5 . org-upcoming-deadline)
561 (0.0 . default))
562 "Faces for showing deadlines in the agenda.
563 This is a list of cons cells. The cdr of each cell is a face to be used,
564 and it can also just be like '(:foreground \"yellow\").
565 Each car is a fraction of the head-warning time that must have passed for
566 this the face in the cdr to be used for display. The numbers must be
567 given in descending order. The head-warning time is normally taken
568 from `org-deadline-warning-days', but can also be specified in the deadline
569 timestamp itself, like this:
571 DEADLINE: <2007-08-13 Mon -8d>
573 You may use d for days, w for weeks, m for months and y for years. Months
574 and years will only be treated in an approximate fashion (30.4 days for a
575 month and 365.24 days for a year)."
576 :group 'org-faces
577 :group 'org-agenda-daily/weekly
578 :type '(repeat
579 (cons
580 (number :tag "Fraction of head-warning time passed")
581 (sexp :tag "Face"))))
583 (defface org-agenda-restriction-lock
584 (org-compatible-face nil
585 '((((class color) (min-colors 88) (background light)) (:background "yellow1"))
586 (((class color) (min-colors 88) (background dark)) (:background "skyblue4"))
587 (((class color) (min-colors 16) (background light)) (:background "yellow1"))
588 (((class color) (min-colors 16) (background dark)) (:background "skyblue4"))
589 (((class color) (min-colors 8)) (:background "cyan" :foreground "black"))
590 (t (:inverse-video t))))
591 "Face for showing the agenda restriction lock."
592 :group 'org-faces)
594 (defface org-time-grid ;; originally copied from font-lock-variable-name-face
595 (org-compatible-face nil
596 '((((class color) (min-colors 16) (background light)) (:foreground "DarkGoldenrod"))
597 (((class color) (min-colors 16) (background dark)) (:foreground "LightGoldenrod"))
598 (((class color) (min-colors 8)) (:foreground "yellow" :weight light))))
599 "Face used for time grids."
600 :group 'org-faces)
602 (defconst org-level-faces
603 '(org-level-1 org-level-2 org-level-3 org-level-4
604 org-level-5 org-level-6 org-level-7 org-level-8
607 (defcustom org-n-level-faces (length org-level-faces)
608 "The number of different faces to be used for headlines.
609 Org-mode defines 8 different headline faces, so this can be at most 8.
610 If it is less than 8, the level-1 face gets re-used for level N+1 etc."
611 :type 'integer
612 :group 'org-faces)
614 (defface org-latex-and-export-specials
615 (let ((font (cond ((assq :inherit custom-face-attributes)
616 '(:inherit underline))
617 (t '(:underline t)))))
618 `((((class grayscale) (background light))
619 (:foreground "DimGray" ,@font))
620 (((class grayscale) (background dark))
621 (:foreground "LightGray" ,@font))
622 (((class color) (background light))
623 (:foreground "SaddleBrown"))
624 (((class color) (background dark))
625 (:foreground "burlywood"))
626 (t (,@font))))
627 "Face used to highlight math latex and other special exporter stuff."
628 :group 'org-faces)
630 (org-copy-face 'modeline 'org-mode-line-clock
631 "Face used for clock display in mode line.")
633 (provide 'org-faces)
635 ;; arch-tag: 9dab5f91-c4b9-4d6f-bac3-1f6211ad0a04
637 ;;; org-faces.el ends here