help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Naming new GUI colors?


From: Ted Zlatanov
Subject: Re: Naming new GUI colors?
Date: Wed, 08 Dec 2010 15:21:04 -0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

On Mon, 26 Jul 2010 09:50:09 -0400 despen@verizon.net wrote: 

d> Ted Zlatanov <tzz@lifelogs.com> writes:
D> On Sat, 24 Jul 2010 10:01:29 +1000 Tim X <timx@nospam.dev.null> wrote: 
>> 
TX> You can define any colour you want using the existing mechanism by using
TX> the # hex notation. You are not restricted to just using the 'named'
TX> colours.
>> 
>> Most users don't speak hex.  I don't want to parse hex every time I look
>> at my face definitions.

d> Does this do what you want?

d> (setq my-red "#FF0033")
d> (set-face-foreground 'default my-red)

Yes.  Amazingly, I never thought of just using a variable there.  Thanks.

Ted


reply via email to

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