emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Org-mode with color-theme.el


From: Carsten Dominik
Subject: Re: [Orgmode] Org-mode with color-theme.el
Date: Thu, 5 Apr 2007 18:54:20 +0200


On Apr 5, 2007, at 12:22, Bastien wrote:
Of course, org could itself contain at least to faces-schemes: one for
white background, one for dark background.  The good new is that the
current faces seem to be okay for both !

The faces in org already have different definitions for light and dark backgrounds, and even different values for terminals with only 8 colors and for black-and-white terminals. This is not something you see when using customize, but if you look in the source file, you see something like:

(defface org-level-1
  (org-compatible-face
   '((((class color) (min-colors 88) (background light))
       (:foreground "Blue1"))
     (((class color) (min-colors 88) (background dark))
       (:foreground "LightSkyBlue"))
     (((class color) (min-colors 16) (background light))
       (:foreground "Blue"))
     (((class color) (min-colors 16) (background dark))
       (:foreground "LightSkyBlue"))
     (((class color) (min-colors 8))
       (:foreground "blue" :bold t))
     (t (:bold t))))
  "Face used for level 1 headlines."
  :group 'org-faces)

org-compatible-face is a function translating an Emacs definition
to the XEmacs syntax where necessary.

Most of these faces I simply stole from font-lock.el

- Carsten





reply via email to

[Prev in Thread] Current Thread [Next in Thread]