[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to save a face in Lisp?
From: |
Johan Bockgård |
Subject: |
Re: how to save a face in Lisp? |
Date: |
Wed, 03 Oct 2007 11:12:35 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
"Drew Adams" <drew.adams@oracle.com> writes:
> For example, suppose this is the definition of face `foo':
>
> (defface foo
> '((((background dark)) (:foreground "DarkGreen"))
> (t (:foreground "Red")))
> "...")
>
> And suppose this has been evaluated, temporarily "customizing" the face
> outside of Customize:
>
> (set-face-attribute 'foo nil :foreground "Yellow")
>
> And suppose that the background mode is not `dark'. Then the spec that needs
> to be written if this face is saved is this:
>
> '((((background dark)) (:foreground "DarkGreen"))
> (t (:foreground "Yellow")))
>
(set-face-attribute FACE nil ...) overrides all other settings of FACE,
so I don't think the `(background dark)' part should be saved.
--
Johan Bockgård