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

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

RE: Default colors 'list-colors-display'


From: brian . auld
Subject: RE: Default colors 'list-colors-display'
Date: Tue, 8 Apr 2003 11:38:51 -0700

> -----Original Message-----
> From: Alex Schroeder [mailto:alex@gnu.org]
> Sent: Tuesday, April 08, 2003 2:15 PM
> To: help-gnu-emacs@gnu.org
> Subject: Re: Default colors 'list-colors-display'
> 
> brian.auld@adic.com writes:
> 
> > I have gone cross-eyed the past day trying to find the answer to my
> > question, but my efforts have not beared fruit. Hopefully someone can
> > answer this for me.
> >
> > I'm trying to add/change colors to my
> > list-colors-display'. Ultimately, I want to get rid of the color
> > cyan', and replace it with something else, as 'cyan' is next to
> > impossible to read against a white background.
> >
> > Specifically it is for color coding 'C'. All other colors in my
> > list-colors-display' are used to highlight some part of the 'C' code,
> > so if I simply change the face where cyan is used ('C' keywords) to
> > another defined color, I will be duplicated its use with something
> > else.
> >
> > I therefore want to add a color that will ultimately show up when I do
> > a 'list-colors-display'. It appears that when I go into a M-x
> > customize ... I can only change colors to something that is defined
> > under 'list-colors-display'.
> >
> > Can someone point me to how I can add color definitions to my emacs.
> 
> I think you are mixing up some things.  When your C source is
> hilighted, then so-called "faces" are used.  A face specifies size,
> font-family, foreground-color, background-color, etc.  So it seems to
> me that you need to run M-x list-faces-display, find the face whose
> name starts with font-lock-..., remember its name, and then run M-x
> customize-face to change it.

Alex, 

Thanks for your reply. Yes, I tried this method yesterday. The problem is, the 
only colors accepted when I try to change the color in a font face, using 'M-x 
customize-face ... ', seem to be those defined in 'list-colors-display'. 

My 'list-colors-display' show the following:

Black, red, green, yellow, blue, magenta, cyan and white.

I do not want to use cyan. All other colors from 'list-colors-display' above 
are used in some other part of the 'C' color coding, defined under some other 
font-lock... setting. So, I want to either (a) define a new color, or (b) 
change cyan to something else.

Regarding 'list-colors-display':
(1) How do I define a new color? (or)
(2) How do I redefine the RGB values of an existing color? (or)
(3) How do I set the color in a font face to something other
    than what's in my 'list-colors-display'?

An answer to any 1 of the above 3 would I think get me over this hump.

Brian

> Alex.
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs




reply via email to

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