How can change the colors assigned by default to C++ keyword by the
command
M-x c++-mode?
Thanks in advance
Antonio
> How can change the colors assigned by default to C++ keyword
One way is to type `M-x list-faces-display RET', find the faces that are
called font-lock-<something>-face (for keywords it's font-lock-keyword-face,
I think) and change their foreground color with `M-x set-face-foreground'.
The last command expects a color name; the list of colors can be seen by
typing `M-x list-colors-display RET'.
> How can change the colors assigned by default to C++ keyword by
> the command M-x c++-mode?
You did not specify your Emacs version, I will therefore assume Emacs
20.3, as this is the most recent version.
Type M-x customize-face RET RET and follow the prompts. If you want
to know what colors are available, type M-x list-colors-display RET,
if you want to have a sample of all faces, type M-x list-faces-display
RET.
NB: when changing faces using customize-face, you'll need to enable
each attribute before setting it. That is, if a face uses the default
background color, you will need to enable ([X] to the left) the
background-color attribute before being able to change it.
kai
--
I like _ b_ o_ t_ h kinds of music.