Merge branch 'maint'
[org-mode.git] / lisp / org-faces.el
blobeab9f3e313fe8d85328d81b790e273adf0ef2045
1 ;;; org-faces.el --- Face definitions -*- lexical-binding: t; -*-
3 ;; Copyright (C) 2004-2017 Free Software Foundation, Inc.
5 ;; Author: Carsten Dominik <carsten at orgmode dot org>
6 ;; Keywords: outlines, hypermedia, calendar, wp
7 ;; Homepage: http://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 ":\\(" (mapconcat 'car value "\\|") "\\):"))))
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 See also `org-fontify-quote-and-verse-blocks'."
400 :group 'org-faces
401 :version "26.1")
403 (defface org-block-begin-line '((t (:inherit org-meta-line)))
404 "Face used for the line delimiting the begin of source blocks."
405 :group 'org-faces)
407 (defface org-block-end-line '((t (:inherit org-block-begin-line)))
408 "Face used for the line delimiting the end of source blocks."
409 :group 'org-faces)
411 (defface org-verbatim '((t (:inherit shadow)))
412 "Face for fixed-with text like code snippets"
413 :group 'org-faces
414 :version "22.1")
416 (defface org-quote '((t (:inherit org-block)))
417 "Face for #+BEGIN_QUOTE ... #+END_QUOTE blocks."
418 :group 'org-faces)
420 (defface org-verse '((t (:inherit org-block)))
421 "Face for #+BEGIN_VERSE ... #+END_VERSE blocks."
422 :group 'org-faces)
424 (defcustom org-fontify-quote-and-verse-blocks nil
425 "Non-nil means, add a special face to #+begin_quote and #+begin_verse block.
426 When nil, format these as normal Org. This is the default, because the
427 content of these blocks will still be treated as Org syntax."
428 :group 'org-faces
429 :version "24.1"
430 :type 'boolean)
432 (defface org-clock-overlay ;Copied from `secondary-selection'
433 '((((class color) (min-colors 88) (background light))
434 (:background "LightGray" :foreground "black"))
435 (((class color) (min-colors 88) (background dark))
436 (:background "SkyBlue4" :foreground "white"))
437 (((class color) (min-colors 16) (background light))
438 (:background "gray" :foreground "black"))
439 (((class color) (min-colors 16) (background dark))
440 (:background "SkyBlue4" :foreground "white"))
441 (((class color) (min-colors 8))
442 (:background "cyan" :foreground "black"))
443 (t (:inverse-video t)))
444 "Basic face for displaying the secondary selection."
445 :group 'org-faces)
447 (defface org-agenda-structure ;Copied from `font-lock-function-name-face'
448 '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
449 (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
450 (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
451 (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
452 (((class color) (min-colors 8)) (:foreground "blue" :bold t))
453 (t (:bold t)))
454 "Face used in agenda for captions and dates."
455 :group 'org-faces)
457 (defface org-agenda-date '((t (:inherit org-agenda-structure)))
458 "Face used in agenda for normal days."
459 :group 'org-faces)
461 (defface org-agenda-date-today
462 '((t (:inherit org-agenda-date :weight bold :italic t)))
463 "Face used in agenda for today."
464 :group 'org-faces)
466 (defface org-agenda-clocking '((t (:inherit secondary-selection)))
467 "Face marking the current clock item in the agenda."
468 :group 'org-faces)
470 (defface org-agenda-date-weekend '((t (:inherit org-agenda-date :weight bold)))
471 "Face used in agenda for weekend days.
473 See the variable `org-agenda-weekend-days' for a definition of
474 which days belong to the weekend."
475 :group 'org-faces)
477 (defface org-scheduled
478 '((((class color) (min-colors 88) (background light)) (:foreground "DarkGreen"))
479 (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen"))
480 (((class color) (min-colors 8)) (:foreground "green"))
481 (t (:bold t :italic t)))
482 "Face for items scheduled for a certain day."
483 :group 'org-faces)
485 (defface org-scheduled-today
486 '((((class color) (min-colors 88) (background light)) (:foreground "DarkGreen"))
487 (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen"))
488 (((class color) (min-colors 8)) (:foreground "green"))
489 (t (:bold t :italic t)))
490 "Face for items scheduled for a certain day."
491 :group 'org-faces)
493 (defface org-agenda-dimmed-todo-face
494 '((((background light)) (:foreground "grey50"))
495 (((background dark)) (:foreground "grey50")))
496 "Face used to dim blocked tasks in the agenda."
497 :group 'org-faces)
499 (defface org-scheduled-previously
500 '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
501 (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
502 (((class color) (min-colors 8) (background light)) (:foreground "red"))
503 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
504 (t (:bold t)))
505 "Face for items scheduled previously, and not yet done."
506 :group 'org-faces)
508 (defface org-upcoming-deadline
509 '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
510 (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
511 (((class color) (min-colors 8) (background light)) (:foreground "red"))
512 (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
513 (t (:bold t)))
514 "Face for items scheduled previously, and not yet done."
515 :group 'org-faces)
517 (defcustom org-agenda-deadline-faces
518 '((1.0 . org-warning)
519 (0.5 . org-upcoming-deadline)
520 (0.0 . default))
521 "Faces for showing deadlines in the agenda.
522 This is a list of cons cells. The cdr of each cell is a face to be used,
523 and it can also just be like \\='(:foreground \"yellow\").
524 Each car is a fraction of the head-warning time that must have passed for
525 this the face in the cdr to be used for display. The numbers must be
526 given in descending order. The head-warning time is normally taken
527 from `org-deadline-warning-days', but can also be specified in the deadline
528 timestamp itself, like this:
530 DEADLINE: <2007-08-13 Mon -8d>
532 You may use d for days, w for weeks, m for months and y for years. Months
533 and years will only be treated in an approximate fashion (30.4 days for a
534 month and 365.24 days for a year)."
535 :group 'org-faces
536 :group 'org-agenda-daily/weekly
537 :type '(repeat
538 (cons
539 (number :tag "Fraction of head-warning time passed")
540 (sexp :tag "Face"))))
542 (defface org-agenda-restriction-lock
543 '((((class color) (min-colors 88) (background light)) (:background "#eeeeee"))
544 (((class color) (min-colors 88) (background dark)) (:background "#1C1C1C"))
545 (((class color) (min-colors 16) (background light)) (:background "#eeeeee"))
546 (((class color) (min-colors 16) (background dark)) (:background "#1C1C1C"))
547 (((class color) (min-colors 8)) (:background "cyan" :foreground "black"))
548 (t (:inverse-video t)))
549 "Face for showing the agenda restriction lock."
550 :group 'org-faces)
552 (defface org-agenda-filter-tags '((t :inherit mode-line))
553 "Face for tag(s) in the mode-line when filtering the agenda."
554 :group 'org-faces)
556 (defface org-agenda-filter-regexp '((t :inherit mode-line))
557 "Face for regexp(s) in the mode-line when filtering the agenda."
558 :group 'org-faces)
560 (defface org-agenda-filter-category '((t :inherit mode-line))
561 "Face for categories in the mode-line when filtering the agenda."
562 :group 'org-faces)
564 (defface org-agenda-filter-effort '((t :inherit mode-line))
565 "Face for effort in the mode-line when filtering the agenda."
566 :group 'org-faces)
568 (defface org-time-grid ;Copied from `font-lock-variable-name-face'
569 '((((class color) (min-colors 16) (background light)) (:foreground "DarkGoldenrod"))
570 (((class color) (min-colors 16) (background dark)) (:foreground "LightGoldenrod"))
571 (((class color) (min-colors 8)) (:foreground "yellow" :weight light)))
572 "Face used for time grids."
573 :group 'org-faces)
575 (defface org-agenda-current-time '((t (:inherit org-time-grid)))
576 "Face used to show the current time in the time grid."
577 :group 'org-faces)
579 (defface org-agenda-diary '((t :inherit default))
580 "Face used for agenda entries that come from the Emacs diary."
581 :group 'org-faces)
583 (defface org-agenda-calendar-event '((t :inherit default))
584 "Face used to show events and appointments in the agenda."
585 :group 'org-faces)
587 (defface org-agenda-calendar-sexp '((t :inherit default))
588 "Face used to show events computed from a S-expression."
589 :group 'org-faces)
591 (defconst org-level-faces
592 '(org-level-1 org-level-2 org-level-3 org-level-4
593 org-level-5 org-level-6 org-level-7 org-level-8))
595 (defcustom org-n-level-faces (length org-level-faces)
596 "The number of different faces to be used for headlines.
597 Org mode defines 8 different headline faces, so this can be at most 8.
598 If it is less than 8, the level-1 face gets re-used for level N+1 etc."
599 :type 'integer
600 :group 'org-faces)
602 (defcustom org-cycle-level-faces t
603 "Non-nil means level styles cycle after level `org-n-level-faces'.
604 Then so level org-n-level-faces+1 is styled like level 1.
605 If nil, then all levels >=org-n-level-faces are styled like
606 level org-n-level-faces"
607 :group 'org-appearance
608 :group 'org-faces
609 :version "24.1"
610 :type 'boolean)
612 (defface org-latex-and-related
613 (let ((font (cond ((assq :inherit custom-face-attributes)
614 '(:inherit underline))
615 (t '(:underline t)))))
616 `((((class grayscale) (background light))
617 (:foreground "DimGray" ,@font))
618 (((class grayscale) (background dark))
619 (:foreground "LightGray" ,@font))
620 (((class color) (background light))
621 (:foreground "SaddleBrown"))
622 (((class color) (background dark))
623 (:foreground "burlywood"))
624 (t (,@font))))
625 "Face used to highlight LaTeX data, entities and sub/superscript."
626 :group 'org-faces
627 :version "24.4"
628 :package-version '(Org . "8.0"))
630 (defface org-macro '((t :inherit org-latex-and-related))
631 "Face for macros."
632 :group 'org-faces
633 :version "24.4"
634 :package-version '(Org . "8.0"))
636 (defface org-tag-group '((t :inherit org-tag))
637 "Face for group tags."
638 :group 'org-faces
639 :version "24.4"
640 :package-version '(Org . "8.0"))
642 (defface org-mode-line-clock '((t (:inherit mode-line)))
643 "Face used for clock display in mode line."
644 :group 'org-faces)
646 (defface org-mode-line-clock-overrun
647 '((t (:inherit mode-line :background "red")))
648 "Face used for clock display for overrun tasks in mode line."
649 :group 'org-faces)
651 (provide 'org-faces)
653 ;;; org-faces.el ends here