From: Dirk-Jan C. Binnema <djcb.bulk@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: customizing some options in cc mode
Date: Sun, 12 Jul 2009 13:57:36 +0300 [thread overview]
Message-ID: <86ws6ew4m7.wl%djcb@djcbsoftware.nl> (raw)
In-Reply-To: <9987c7a9-d827-43e3-8686-6ef905462850@g23g2000vbr.googlegroups.com>
>>>>> "Luca" == Luca <luca.pamparana@gmail.com> writes:
Luca> Hello everyone,
Luca> I recently started using emacs for my C++ development and I have a
Luca> question about customizing the colours.
Luca> I want to customize the code documentation to show up in purple. So
Luca> anything in between (// and /**) should show up in the specified
Luca> colour.
Luca> Does anyone know which emacs variable do I need to set in my .emacs
Luca> file for this to work?
I assume you already have font-locking (syntax-highlighting) enabled?
Anyway, this should do the trick (put in your .emacs):
(set-face-foreground 'font-lock-comment-face "purple")
This is *global*, so will also affect the way comments are shown in other
modes.
If you want to customize many more of the colors, it might be worthwhile to
define your own color theme; I blogged about that:
http://emacs-fu.blogspot.com/2009/03/color-theming.html
Best wishes,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:djcb@djcbsoftware.nl w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C
next prev parent reply other threads:[~2009-07-12 10:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-12 9:47 customizing some options in cc mode Luca
2009-07-12 10:57 ` Dirk-Jan C. Binnema [this message]
2009-07-12 11:51 ` Peter Dyballa
[not found] ` <mailman.2346.1247399492.2239.help-gnu-emacs@gnu.org>
2009-07-12 12:02 ` Teemu Likonen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86ws6ew4m7.wl%djcb@djcbsoftware.nl \
--to=djcb.bulk@gmail.com \
--cc=djcb@djcbsoftware.nl \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.