* Re: Default colors 'list-colors-display'
[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
1 sibling, 1 reply; 5+ messages in thread
From: Alex Schroeder @ 2003-04-08 18:14 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Default colors 'list-colors-display'
2003-04-08 18:14 ` Default colors 'list-colors-display' Alex Schroeder
@ 2003-04-08 18:41 ` Kai Großjohann
0 siblings, 0 replies; 5+ messages in thread
From: Kai Großjohann @ 2003-04-08 18:41 UTC (permalink / raw)
Alex Schroeder <alex@gnu.org> writes:
> 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.
And the color can be entered as RGB values in hex. Maybe the syntax
is #RRGGBB? I'm not sure.
--
A preposition is not a good thing to end a sentence with.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Default colors 'list-colors-display'
[not found] <mailman.4294.1049824065.21513.help-gnu-emacs@gnu.org>
2003-04-08 18:14 ` Default colors 'list-colors-display' Alex Schroeder
@ 2003-04-08 18:56 ` Jesper Harder
1 sibling, 0 replies; 5+ messages in thread
From: Jesper Harder @ 2003-04-08 18:56 UTC (permalink / raw)
brian.auld@adic.com writes:
> 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'.
Are you running Emacs on a terminal (xterm, linux console, ms-dos etc.)
or under a windowing system?
If you're using a terminal, then consider switching to a version of
Emacs running in a windowing system where there's much more than just 8
colours available.
Some terminals also allow you to change the colours easily from a menu
-- this is probably the easiest solution if you *want* to use a
terminal.
You could also get a version of Xterm that supports up to 256 colours,
but you'll need an extra Emacs package to take advantage of it (Google
for `xterm-256color.el' or something similar).
^ permalink raw reply [flat|nested] 5+ messages in thread
* 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
* 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 --
[not found] <mailman.4294.1049824065.21513.help-gnu-emacs@gnu.org>
2003-04-08 18:14 ` Default colors 'list-colors-display' Alex Schroeder
2003-04-08 18:41 ` Kai Großjohann
2003-04-08 18:56 ` Jesper Harder
2003-04-08 18:38 brian.auld
-- strict thread matches above, loose matches on Subject: below --
2003-04-08 17:44 brian.auld
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.