unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* RE: Default colors 'list-colors-display'
@ 2003-04-08 18:38 brian.auld
  0 siblings, 0 replies; 5+ messages in thread
From: brian.auld @ 2003-04-08 18:38 UTC (permalink / raw)


> -----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

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <mailman.4294.1049824065.21513.help-gnu-emacs@gnu.org>]
* Default colors 'list-colors-display'
@ 2003-04-08 17:44 brian.auld
  0 siblings, 0 replies; 5+ messages in thread
From: brian.auld @ 2003-04-08 17:44 UTC (permalink / raw)


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.

Regards,

-- Brian

p.s. 

>From an emacs newbie trying to get on the emacs bandwagon

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-04-08 18:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-08 18:38 Default colors 'list-colors-display' brian.auld
     [not found] <mailman.4294.1049824065.21513.help-gnu-emacs@gnu.org>
2003-04-08 18:14 ` Alex Schroeder
2003-04-08 18:41   ` Kai Großjohann
2003-04-08 18:56 ` Jesper Harder
  -- strict thread matches above, loose matches on Subject: below --
2003-04-08 17:44 brian.auld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).