From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Font-lock-faces in Emacs 23.2 Date: Thu, 16 Dec 2010 08:16:52 -0800 Message-ID: <3E65AA26F2AB42C594FCD8E8F76A2BAE@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292516310 24081 80.91.229.12 (16 Dec 2010 16:18:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 16:18:30 +0000 (UTC) To: , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 16 17:18:26 2010 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.69) (envelope-from ) id 1PTGXA-0007Lm-Ti for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 17:18:25 +0100 Original-Received: from localhost ([127.0.0.1]:57139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTGX7-000058-Cb for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 11:18:21 -0500 Original-Received: from [140.186.70.92] (port=60735 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTGWV-0007rq-7k for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 11:18:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTGW4-0006a2-S8 for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 11:17:40 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:42997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTGW4-0006ZS-MT for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 11:17:16 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBGGHDST005362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 16 Dec 2010 16:17:14 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBGGHCiD012637; Thu, 16 Dec 2010 16:17:12 GMT Original-Received: from abhmt001.oracle.com by acsmt355.oracle.com with ESMTP id 881171261292516216; Thu, 16 Dec 2010 08:16:56 -0800 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 16 Dec 2010 08:16:53 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcudK3+X36SN9YxoTE2vsdA0MleqLwADo5ew In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:77592 Archived-At: > 1.- M-x customize-group > 2.- font-lock-faces > 3.- Then move down to the "Font Lock Type Face"... > 4.- Then change the Foreground entry... to OrangeRed... > 5.- ...click the button > and the , reply ... No need do `Set', since you're doing `Save' (but it doesn't hurt). > 6.- Exit customize ... > Customize has written the following code to my <.emac> file, > and this is the last statement in my <.emacs> file: > > (custom-set-faces... > '(dired-header ((t (:inherit default :foreground "OrangeRed")))) > '(font-lock-type-face ((t (:foreground "OrangeRed"))))... Does your .emacs get loaded that far, so that the `customize-set-faces' actually gets eval'd? E.g., does the `dired-header' face show up OK? Font lock is sometimes a bit special. What happens if you customize a different font-lock face, e.g. `font-lock-doc-face'? Does that work (for subsequent sessions)? Are you sure that the face wasn't in fact customized for future sessions, but that perhaps font-lock-mode wasn't turned on? Which color is indicated as the foreground setting after you start up the second time, if you do `customize-face RET font-lock-type-face RET' then? Try (after backing up your .emacs) using a different .emacs that has only this in it: (custom-set-faces '(font-lock-type-face ((t (:foreground "OrangeRed"))))) If that works, then try commenting out half of your original .emacs (leaving the `custom-set-faces'), then comment-out 3/4, 7/8, 15/16,... until you find which part of your init file is interfering. In sum, play around a little, varying things, to see what you can discover.