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

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

Re: How can I config the color of #include "test.h" in cpp file


From: Bastien
Subject: Re: How can I config the color of #include "test.h" in cpp file
Date: Mon, 13 Oct 2008 09:13:31 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

"yinglcs@gmail.com" <yinglcs@gmail.com> writes:

> How can I config the color of #include "test.h" in cpp file?
> especially the words "#include"?

Put the cursor on the string you want to change the fontification of,
then type M-x cutomize-face RET.  This will bring up an interface where
you can change the color (among other aspects).

> (set-face-foreground 'font-lock-comment-face "firebrick")
> (set-face-foreground 'font-lock-keyword-face "orange")

Using `customize-face' is safer, because it just modifies the face of
the string under cursor.

HTH,

-- 
Bastien




reply via email to

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