org-faces.el 25 KB

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