lisp/org-table.el: fix table alignment
[org-mode/org-tableheadings.git] / lisp / org-faces.el
blob8e9726cceccfee164972ccc8823d921d31cbfcc8
1 ;;; org-faces.el --- Face definitions -*- lexical-binding: t; -*-
3 ;; Copyright (C) 2004-2019 Free Software Foundation, Inc.
5 ;; Author: Carsten Dominik <carsten at orgmode dot org>
6 ;; Keywords: outlines, hypermedia, calendar, wp
7 ;; Homepage: https://orgmode.org
8 ;;
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 <https://www.gnu.org/licenses/>.
23 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
25 ;;; Commentary:
27 ;; This file contains the face definitions for Org.
29 ;;; Code:
31 (defgroup org-faces nil
32 "Faces in Org mode."
33 :tag "Org Faces"
34 :group 'org-appearance)
36 (defface org-default '((t :inherit default))
37 "Face used for default text."
38 :group 'org-faces)
40 (defface org-hide
41 '((((background light)) (:foreground "white"))
42 (((background dark)) (:foreground "black")))
43 "Face used to hide leading stars in headlines.
44 The foreground color of this face should be equal to the background
45 color of the frame."
46 :group 'org-faces)
48 (defface org-level-1 '((t :inherit outline-1))
49 "Face used for level 1 headlines."
50 :group 'org-faces)
52 (defface org-level-2 '((t :inherit outline-2))
53 "Face used for level 2 headlines."
54 :group 'org-faces)
56 (defface org-level-3 '((t :inherit outline-3))
57 "Face used for level 3 headlines."
58 :group 'org-faces)
60 (defface org-level-4 '((t :inherit outline-4))
61 "Face used for level 4 headlines."
62 :group 'org-faces)
64 (defface org-level-5 '((t :inherit outline-5))
65 "Face used for level 5 headlines."
66 :group 'org-faces)
68 (defface org-level-6 '((t :inherit outline-6))
69 "Face used for level 6 headlines."
70 :group 'org-faces)
72 (defface org-level-7 '((t :inherit outline-7))
73 "Face used for level 7 headlines."
74 :group 'org-faces)
76 (defface org-level-8 '((t :inherit outline-8))
77 "Face used for level 8 headlines."
78 :group 'org-faces)
80 (defface org-special-keyword '((t :inherit font-lock-keyword-face))
81 "Face used for special keywords."
82 :group 'org-faces)
84 (defface org-drawer ;Copied from `font-lock-function-name-face'
85 '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
86 (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
87 (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
88 (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
89 (((class color) (min-colors 8)) (:foreground "blue" :bold t))
90 (t (:bold t)))
91 "Face used for drawers."
92 :group 'org-faces)
94 (defface org-property-value nil
95 "Face used for the value of a property."
96 :group 'org-faces)
98 (defface org-column
99 '((((class color) (min-colors 16) (background light))
100 (:background "grey90" :weight normal :slant normal :strike-through nil
101 :underline nil))
102 (((class color) (min-colors 16) (background dark))
103 (:background "grey30" :weight normal :slant normal :strike-through nil
104 :underline nil))
105 (((class color) (min-colors 8))
106 (:background "cyan" :foreground "black"
107 :weight normal :slant normal :strike-through nil
108 :underline nil))
109 (t (:inverse-video t)))
110 "Face for column display of entry properties.
111 This is actually only part of the face definition for the text in column view.
112 The following faces apply, with this priority.
114 1. The color of the reference face. This is normally the level fact that
115 is used in the outline. In agenda-mode, it will be the face of the
116 first character in the line. The color is explicitly retained to
117 make sure that the column line still looks a bit like the structure
118 line it is masking.
120 2. The `org-column' face.
122 3. The remaining properties of the reference face.
124 Since column view works by putting overlays with a display property
125 over individual characters in the buffer, the face of the underlining
126 character (this might for example be the a TODO keyword) might still
127 shine through in some properties. So when your column view looks
128 funny, with \"random\" colors, weight, strike-through, try to explicitly
129 set the properties in the `org-column' face. For example, set
130 :underline to nil, or the :slant to `normal'."
131 :group 'org-faces)
133 (defface org-column-title
134 '((((class color) (min-colors 16) (background light))
135 (:background "grey90" :underline t :weight bold))
136 (((class color) (min-colors 16) (background dark))
137 (:background "grey30" :underline t :weight bold))
138 (((class color) (min-colors 8))
139 (:background "cyan" :foreground "black" :underline t :weight bold))
140 (t (:inverse-video t)))
141 "Face for column display of entry properties."
142 :group 'org-faces)
144 (defface org-agenda-column-dateline '((t :inherit org-column))
145 "Face used in agenda column view for datelines with summaries."
146 :group 'org-faces)
148 (defface org-warning '((t :inherit font-lock-warning-face))
149 "Face for deadlines and TODO keywords."
150 :group 'org-faces)
152 (defface org-archived '((t :inherit shadow))
153 "Face for headline with the ARCHIVE tag."
154 :group 'org-faces)
156 (defface org-link '((t :inherit link))
157 "Face for links."
158 :group 'org-faces)
160 (defface org-footnote
161 '((((class color) (background light)) (:foreground "Purple" :underline t))
162 (((class color) (background dark)) (:foreground "Cyan" :underline t))
163 (t (:underline t)))
164 "Face for footnotes."
165 :group 'org-faces)
167 (defface org-ellipsis
168 '((((class color) (background light)) (:foreground "DarkGoldenrod" :underline t))
169 (((class color) (background dark)) (:foreground "LightGoldenrod" :underline t))
170 (t (:strike-through t)))
171 "Face for the ellipsis in folded text."
172 :group 'org-faces)
174 (defface org-target
175 '((((class color) (background light)) (:underline t))
176 (((class color) (background dark)) (:underline t))
177 (t (:underline t)))
178 "Face for link targets."
179 :group 'org-faces)
181 (defface org-date
182 '((((class color) (background light)) (:foreground "Purple" :underline t))
183 (((class color) (background dark)) (:foreground "Cyan" :underline t))
184 (t (:underline t)))
185 "Face for date/time stamps."
186 :group 'org-faces)
188 (defface org-date-selected
189 '((((class color) (min-colors 16) (background light)) (:foreground "Red1" :inverse-video t))
190 (((class color) (min-colors 16) (background dark)) (:foreground "Pink" :inverse-video t))
191 (((class color) (min-colors 8) (background light)) (:foreground "red" :inverse-video t))
192 (((class color) (min-colors 8) (background dark)) (:foreground "red" :inverse-video t))
193 (t (:inverse-video t)))
194 "Face for highlighting the calendar day when using `org-read-date'.
195 Using a bold face here might cause discrepancies while displaying the
196 calendar."
197 :group 'org-faces)
199 (defface org-sexp-date
200 '((((class color) (background light)) (:foreground "Purple"))
201 (((class color) (background dark)) (:foreground "Cyan"))
202 (t (:underline t)))
203 "Face for diary-like sexp date specifications."
204 :group 'org-faces)
206 (defface org-tag '((t (:bold t)))
207 "Default face for tags.
208 Note that the variable `org-tag-faces' can be used to overrule this face for
209 specific tags."
210 :group 'org-faces)
212 (defface org-list-dt '((t (:bold t)))
213 "Default face for definition terms in lists."
214 :group 'org-faces)
216 (defface org-todo ;Copied from `font-lock-warning-face'
217 '((((class color) (min-colors 16) (background light)) (:foreground "Red1" :bold t))
218 (((class color) (min-colors 16) (background dark)) (:foreground "Pink" :bold t))
219 (((class color) (min-colors 8) (background light)) (:foreground "red" :bold t))
220 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
221 (t (:inverse-video t :bold t)))
222 "Face for TODO keywords."
223 :group 'org-faces)
225 (defface org-done ;Copied from `font-lock-type-face'
226 '((((class color) (min-colors 16) (background light)) (:foreground "ForestGreen" :bold t))
227 (((class color) (min-colors 16) (background dark)) (:foreground "PaleGreen" :bold t))
228 (((class color) (min-colors 8)) (:foreground "green"))
229 (t (:bold t)))
230 "Face used for todo keywords that indicate DONE items."
231 :group 'org-faces)
233 (defface org-agenda-done ;Copied from `font-lock-type-face'
234 '((((class color) (min-colors 16) (background light)) (:foreground "ForestGreen"))
235 (((class color) (min-colors 16) (background dark)) (:foreground "PaleGreen"))
236 (((class color) (min-colors 8)) (:foreground "green"))
237 (t (:bold nil)))
238 "Face used in agenda, to indicate lines switched to DONE.
239 This face is used to de-emphasize items that where brightly colored in the
240 agenda because they were things to do, or overdue. The DONE state itself
241 is of course immediately visible, but for example a passed deadline is
242 \(by default) very bright read. This face could be simply the default face
243 of the frame, for example."
244 :group 'org-faces)
246 (defface org-headline-done ;Copied from `font-lock-string-face'
247 '((((class color) (min-colors 16) (background light)) (:foreground "RosyBrown"))
248 (((class color) (min-colors 16) (background dark)) (:foreground "LightSalmon"))
249 (((class color) (min-colors 8) (background light)) (:bold nil)))
250 "Face used to indicate that a headline is DONE.
251 This face is only used if `org-fontify-done-headline' is set. If applies
252 to the part of the headline after the DONE keyword."
253 :group 'org-faces)
255 (defcustom org-faces-easy-properties
256 '((todo . :foreground) (tag . :foreground) (priority . :foreground))
257 "The property changes by easy faces.
258 This is an alist, the keys show the area of application, the values
259 can be `:foreground' or `:background'. A color string for special
260 keywords will then be interpreted as either foreground or background
261 color."
262 :group 'org-faces
263 :group 'org-todo
264 :version "24.1"
265 :type '(repeat
266 (cons (choice (const todo) (const tag) (const priority))
267 (choice (const :foreground) (const :background)))))
269 (defcustom org-todo-keyword-faces nil
270 "Faces for specific TODO keywords.
271 This is a list of cons cells, with TODO keywords in the car
272 and faces in the cdr. The face can be a symbol, a color
273 as a string (in which case the rest is inherited from the `org-todo' face),
274 or a property list of attributes, like
275 (:foreground \"blue\" :weight bold :underline t).
276 If it is a color string, the variable `org-faces-easy-properties'
277 determines if it is a foreground or a background color."
278 :group 'org-faces
279 :group 'org-todo
280 :type '(repeat
281 (cons
282 (string :tag "Keyword")
283 (choice :tag "Face "
284 (string :tag "Color")
285 (sexp :tag "Face")))))
287 (defface org-priority '((t :inherit font-lock-keyword-face))
288 "Face used for priority cookies."
289 :group 'org-faces)
291 (defcustom org-priority-faces nil
292 "Faces for specific Priorities.
293 This is a list of cons cells, with priority character in the car
294 and faces in the cdr. The face can be a symbol, a color
295 as a string, or a property list of attributes, like
296 (:foreground \"blue\" :weight bold :underline t).
297 If it is a color string, the variable `org-faces-easy-properties'
298 determines if it is a foreground or a background color."
299 :group 'org-faces
300 :group 'org-todo
301 :type '(repeat
302 (cons
303 (character :tag "Priority")
304 (choice :tag "Face "
305 (string :tag "Color")
306 (sexp :tag "Face")))))
308 (defvar org-tags-special-faces-re nil)
309 (defun org-set-tag-faces (var value)
310 (set var value)
311 (if (not value)
312 (setq org-tags-special-faces-re nil)
313 (setq org-tags-special-faces-re
314 (concat ":" (regexp-opt (mapcar #'car value) t) ":"))))
316 (defface org-checkbox '((t :inherit bold))
317 "Face for checkboxes."
318 :group 'org-faces)
320 (defface org-checkbox-statistics-todo '((t (:inherit org-todo)))
321 "Face used for unfinished checkbox statistics."
322 :group 'org-faces)
324 (defface org-checkbox-statistics-done '((t (:inherit org-done)))
325 "Face used for finished checkbox statistics."
326 :group 'org-faces)
328 (defcustom org-tag-faces nil
329 "Faces for specific tags.
330 This is a list of cons cells, with tags in the car and faces in the cdr.
331 The face can be a symbol, a foreground color (in which case the rest is
332 inherited from the `org-tag' face) or a property list of attributes,
333 like (:foreground \"blue\" :weight bold :underline t).
334 If you set this variable through customize, it will immediately be effective
335 in new buffers and in modified lines.
336 If you set it with Lisp, a restart of Emacs is required to activate the
337 changes."
338 :group 'org-faces
339 :group 'org-tags
340 :set 'org-set-tag-faces
341 :type '(repeat
342 (cons
343 (string :tag "Tag ")
344 (choice :tag "Face"
345 (string :tag "Foreground color")
346 (sexp :tag "Face")))))
348 (defface org-table ;Copied from `font-lock-function-name-face'
349 '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
350 (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
351 (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
352 (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
353 (((class color) (min-colors 8) (background light)) (:foreground "blue"))
354 (((class color) (min-colors 8) (background dark))))
355 "Face used for tables."
356 :group 'org-faces)
358 (defface org-formula
359 '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
360 (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
361 (((class color) (min-colors 8) (background light)) (:foreground "red"))
362 (((class color) (min-colors 8) (background dark)) (:foreground "red"))
363 (t (:bold t :italic t)))
364 "Face for formulas."
365 :group 'org-faces)
367 (defface org-code '((t :inherit shadow))
368 "Face for fixed-width text like code snippets."
369 :group 'org-faces
370 :version "22.1")
372 (defface org-meta-line '((t :inherit font-lock-comment-face))
373 "Face for meta lines starting with \"#+\"."
374 :group 'org-faces
375 :version "22.1")
377 (defface org-document-title
378 '((((class color) (background light)) (:foreground "midnight blue" :weight bold))
379 (((class color) (background dark)) (:foreground "pale turquoise" :weight bold))
380 (t (:weight bold)))
381 "Face for document title, i.e. that which follows the #+TITLE: keyword."
382 :group 'org-faces)
384 (defface org-document-info
385 '((((class color) (background light)) (:foreground "midnight blue"))
386 (((class color) (background dark)) (:foreground "pale turquoise"))
387 (t nil))
388 "Face for document date, author and email; i.e. that which
389 follows a #+DATE:, #+AUTHOR: or #+EMAIL: keyword."
390 :group 'org-faces)
392 (defface org-document-info-keyword '((t :inherit shadow))
393 "Face for #+TITLE:, #+AUTHOR:, #+EMAIL: and #+DATE: keywords."
394 :group 'org-faces)
396 (defface org-block '((t :inherit shadow))
397 "Face text in #+begin ... #+end blocks.
398 For source-blocks `org-src-block-faces' takes precedence."
399 :group 'org-faces
400 :version "26.1")
402 (defface org-block-begin-line '((t (:inherit org-meta-line)))
403 "Face used for the line delimiting the begin of source blocks."
404 :group 'org-faces)
406 (defface org-block-end-line '((t (:inherit org-block-begin-line)))
407 "Face used for the line delimiting the end of source blocks."
408 :group 'org-faces)
410 (defface org-verbatim '((t (:inherit shadow)))
411 "Face for fixed-with text like code snippets"
412 :group 'org-faces
413 :version "22.1")
415 (defface org-quote '((t (:inherit org-block)))
416 "Face for #+BEGIN_QUOTE ... #+END_QUOTE blocks.
417 Active when `org-fontify-quote-and-verse-blocks' is set."
418 :group 'org-faces)
420 (defface org-verse '((t (:inherit org-block)))
421 "Face for #+BEGIN_VERSE ... #+END_VERSE blocks.
422 Active when `org-fontify-quote-and-verse-blocks' is set."
423 :group 'org-faces)
425 (defcustom org-fontify-quote-and-verse-blocks nil
426 "Non-nil means, add a special face to #+begin_quote and #+begin_verse block.
427 When nil, format these as normal Org. This is the default, because the
428 content of these blocks will still be treated as Org syntax."
429 :group 'org-faces
430 :version "24.1"
431 :type 'boolean)
433 (defface org-clock-overlay ;Copied from `secondary-selection'
434 '((((class color) (min-colors 88) (background light))
435 (:background "LightGray" :foreground "black"))
436 (((class color) (min-colors 88) (background dark))
437 (:background "SkyBlue4" :foreground "white"))
438 (((class color) (min-colors 16) (background light))
439 (:background "gray" :foreground "black"))
440 (((class color) (min-colors 16) (background dark))
441 (:background "SkyBlue4" :foreground "white"))
442 (((class color) (min-colors 8))
443 (:background "cyan" :foreground "black"))
444 (t (:inverse-video t)))
445 "Basic face for displaying the secondary selection."
446 :group 'org-faces)
448 (defface org-agenda-structure ;Copied from `font-lock-function-name-face'
449 '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
450 (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
451 (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
452 (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
453 (((class color) (min-colors 8)) (:foreground "blue" :bold t))
454 (t (:bold t)))
455 "Face used in agenda for captions and dates."
456 :group 'org-faces)
458 (defface org-agenda-date '((t (:inherit org-agenda-structure)))
459 "Face used in agenda for normal days."
460 :group 'org-faces)
462 (defface org-agenda-date-today
463 '((t (:inherit org-agenda-date :weight bold :italic t)))
464 "Face used in agenda for today."
465 :group 'org-faces)
467 (defface org-agenda-clocking '((t (:inherit secondary-selection)))
468 "Face marking the current clock item in the agenda."
469 :group 'org-faces)
471 (defface org-agenda-date-weekend '((t (:inherit org-agenda-date :weight bold)))
472 "Face used in agenda for weekend days.
474 See the variable `org-agenda-weekend-days' for a definition of
475 which days belong to the weekend."
476 :group 'org-faces)
478 (defface org-scheduled
479 '((((class color) (min-colors 88) (background light)) (:foreground "DarkGreen"))
480 (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen"))
481 (((class color) (min-colors 8)) (:foreground "green"))
482 (t (:bold t :italic t)))
483 "Face for items scheduled for a certain day."
484 :group 'org-faces)
486 (defface org-scheduled-today
487 '((((class color) (min-colors 88) (background light)) (:foreground "DarkGreen"))
488 (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen"))
489 (((class color) (min-colors 8)) (:foreground "green"))
490 (t (:bold t :italic t)))
491 "Face for items scheduled for a certain day."
492 :group 'org-faces)
494 (defface org-agenda-dimmed-todo-face
495 '((((background light)) (:foreground "grey50"))
496 (((background dark)) (:foreground "grey50")))
497 "Face used to dim blocked tasks in the agenda."
498 :group 'org-faces)
500 (defface org-scheduled-previously
501 '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
502 (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
503 (((class color) (min-colors 8) (background light)) (:foreground "red"))
504 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
505 (t (:bold t)))
506 "Face for items scheduled previously, and not yet done."
507 :group 'org-faces)
509 (defface org-upcoming-deadline
510 '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
511 (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
512 (((class color) (min-colors 8) (background light)) (:foreground "red"))
513 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
514 (t (:bold t)))
515 "Face for items scheduled previously, and not yet done.
516 See also `org-agenda-deadline-faces'."
517 :group 'org-faces)
519 (defface org-upcoming-distant-deadline '((t :inherit org-default))
520 "Face for items scheduled previously, not done, and have a distant deadline.
521 See also `org-agenda-deadline-faces'.")
523 (defcustom org-agenda-deadline-faces
524 '((1.0 . org-warning)
525 (0.5 . org-upcoming-deadline)
526 (0.0 . org-upcoming-distant-deadline))
527 "Faces for showing deadlines in the agenda.
528 This is a list of cons cells. The cdr of each cell is a face to be used,
529 and it can also just be like \\='(:foreground \"yellow\").
530 Each car is a fraction of the head-warning time that must have passed for
531 this the face in the cdr to be used for display. The numbers must be
532 given in descending order. The head-warning time is normally taken
533 from `org-deadline-warning-days', but can also be specified in the deadline
534 timestamp itself, like this:
536 DEADLINE: <2007-08-13 Mon -8d>
538 You may use d for days, w for weeks, m for months and y for years. Months
539 and years will only be treated in an approximate fashion (30.4 days for a
540 month and 365.24 days for a year)."
541 :group 'org-faces
542 :group 'org-agenda-daily/weekly
543 :type '(repeat
544 (cons
545 (number :tag "Fraction of head-warning time passed")
546 (sexp :tag "Face"))))
548 (defface org-agenda-restriction-lock
549 '((((class color) (min-colors 88) (background light)) (:background "#eeeeee"))
550 (((class color) (min-colors 88) (background dark)) (:background "#1C1C1C"))
551 (((class color) (min-colors 16) (background light)) (:background "#eeeeee"))
552 (((class color) (min-colors 16) (background dark)) (:background "#1C1C1C"))
553 (((class color) (min-colors 8)) (:background "cyan" :foreground "black"))
554 (t (:inverse-video t)))
555 "Face for showing the agenda restriction lock."
556 :group 'org-faces)
558 (defface org-agenda-filter-tags '((t :inherit mode-line))
559 "Face for tag(s) in the mode-line when filtering the agenda."
560 :group 'org-faces)
562 (defface org-agenda-filter-regexp '((t :inherit mode-line))
563 "Face for regexp(s) in the mode-line when filtering the agenda."
564 :group 'org-faces)
566 (defface org-agenda-filter-category '((t :inherit mode-line))
567 "Face for categories in the mode-line when filtering the agenda."
568 :group 'org-faces)
570 (defface org-agenda-filter-effort '((t :inherit mode-line))
571 "Face for effort in the mode-line when filtering the agenda."
572 :group 'org-faces)
574 (defface org-time-grid ;Copied from `font-lock-variable-name-face'
575 '((((class color) (min-colors 16) (background light)) (:foreground "DarkGoldenrod"))
576 (((class color) (min-colors 16) (background dark)) (:foreground "LightGoldenrod"))
577 (((class color) (min-colors 8)) (:foreground "yellow" :weight light)))
578 "Face used for time grids."
579 :group 'org-faces)
581 (defface org-agenda-current-time '((t (:inherit org-time-grid)))
582 "Face used to show the current time in the time grid."
583 :group 'org-faces)
585 (defface org-agenda-diary '((t :inherit default))
586 "Face used for agenda entries that come from the Emacs diary."
587 :group 'org-faces)
589 (defface org-agenda-calendar-event '((t :inherit default))
590 "Face used to show events and appointments in the agenda."
591 :group 'org-faces)
593 (defface org-agenda-calendar-sexp '((t :inherit default))
594 "Face used to show events computed from a S-expression."
595 :group 'org-faces)
597 (defconst org-level-faces
598 '(org-level-1 org-level-2 org-level-3 org-level-4
599 org-level-5 org-level-6 org-level-7 org-level-8))
601 (defcustom org-n-level-faces (length org-level-faces)
602 "The number of different faces to be used for headlines.
603 Org mode defines 8 different headline faces, so this can be at most 8.
604 If it is less than 8, the level-1 face gets re-used for level N+1 etc."
605 :type 'integer
606 :group 'org-faces)
608 (defcustom org-cycle-level-faces t
609 "Non-nil means level styles cycle after level `org-n-level-faces'.
610 Then so level org-n-level-faces+1 is styled like level 1.
611 If nil, then all levels >=org-n-level-faces are styled like
612 level org-n-level-faces"
613 :group 'org-appearance
614 :group 'org-faces
615 :version "24.1"
616 :type 'boolean)
618 (defface org-latex-and-related
619 (let ((font (cond ((assq :inherit custom-face-attributes)
620 '(:inherit underline))
621 (t '(:underline t)))))
622 `((((class grayscale) (background light))
623 (:foreground "DimGray" ,@font))
624 (((class grayscale) (background dark))
625 (:foreground "LightGray" ,@font))
626 (((class color) (background light))
627 (:foreground "SaddleBrown"))
628 (((class color) (background dark))
629 (:foreground "burlywood"))
630 (t (,@font))))
631 "Face used to highlight LaTeX data, entities and sub/superscript."
632 :group 'org-faces
633 :version "24.4"
634 :package-version '(Org . "8.0"))
636 (defface org-macro '((t :inherit org-latex-and-related))
637 "Face for macros."
638 :group 'org-faces
639 :version "24.4"
640 :package-version '(Org . "8.0"))
642 (defface org-tag-group '((t :inherit org-tag))
643 "Face for group tags."
644 :group 'org-faces
645 :version "24.4"
646 :package-version '(Org . "8.0"))
648 (defface org-mode-line-clock '((t (:inherit mode-line)))
649 "Face used for clock display in mode line."
650 :group 'org-faces)
652 (defface org-mode-line-clock-overrun
653 '((t (:inherit mode-line :background "red")))
654 "Face used for clock display for overrun tasks in mode line."
655 :group 'org-faces)
657 (provide 'org-faces)
659 ;;; org-faces.el ends here