From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dirk-Jan C. Binnema Newsgroups: gmane.emacs.help Subject: Re: customizing some options in cc mode Date: Sun, 12 Jul 2009 13:57:36 +0300 Message-ID: <86ws6ew4m7.wl%djcb@djcbsoftware.nl> References: <9987c7a9-d827-43e3-8686-6ef905462850@g23g2000vbr.googlegroups.com> Reply-To: djcb@djcbsoftware.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1247396344 8941 80.91.229.12 (12 Jul 2009 10:59:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2009 10:59:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 12 12:58:57 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MPwlh-000394-QD for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2009 12:58:54 +0200 Original-Received: from localhost ([127.0.0.1]:33498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPwlg-0002YL-VC for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2009 06:58:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPwkf-0002R3-E2 for help-gnu-emacs@gnu.org; Sun, 12 Jul 2009 06:57:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPwkY-0002OI-4D for help-gnu-emacs@gnu.org; Sun, 12 Jul 2009 06:57:46 -0400 Original-Received: from [199.232.76.173] (port=36472 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPwkX-0002OD-UX for help-gnu-emacs@gnu.org; Sun, 12 Jul 2009 06:57:41 -0400 Original-Received: from emh05.mail.saunalahti.fi ([62.142.5.111]:42825) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MPwkX-0004mA-Dq for help-gnu-emacs@gnu.org; Sun, 12 Jul 2009 06:57:41 -0400 Original-Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh05-2.mail.saunalahti.fi (Postfix) with SMTP id C12438BE00 for ; Sun, 12 Jul 2009 13:57:37 +0300 (EEST) Original-Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A02234BE219; Sun, 12 Jul 2009 13:57:37 +0300 Original-Received: from mail.djcbsoftware.nl (a88-113-10-89.elisa-laajakaista.fi [88.113.10.89]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id B55AA158A67 for ; Sun, 12 Jul 2009 13:57:36 +0300 (EEST) Original-Received: from mindcrime.mindcrime.djcbsoftware.nl (localhost [127.0.0.1]) by mail.djcbsoftware.nl (Postfix) with ESMTP id C86FE59E59 for ; Sun, 12 Jul 2009 13:57:36 +0300 (EEST) Original-Newsgroups: gnu.emacs.help In-Reply-To: <9987c7a9-d827-43e3-8686-6ef905462850@g23g2000vbr.googlegroups.com> User-Agent: Wanderlust/2.15.6 (Almost Unreal) Emacs/23.0 Mule/6.0 (HANACHIRUSATO) X-Antivirus: VAMS X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65973 Archived-At: >>>>> "Luca" == Luca 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