From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Bowman Newsgroups: gmane.emacs.help Subject: Separating // and /**/ comment fontification Date: Tue, 7 Jun 2005 15:09:08 -0700 (PDT) Message-ID: <20050607220909.6705.qmail@web51902.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1118182168 30480 80.91.229.2 (7 Jun 2005 22:09:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2005 22:09:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 08 00:09:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DfmEr-0002mD-2H for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2005 00:08:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfmLR-0005D6-QB for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2005 18:14:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DfmJs-0004dq-Pe for help-gnu-emacs@gnu.org; Tue, 07 Jun 2005 18:13:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DfmJq-0004br-AZ for help-gnu-emacs@gnu.org; Tue, 07 Jun 2005 18:13:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfmJp-0004aP-On for help-gnu-emacs@gnu.org; Tue, 07 Jun 2005 18:13:10 -0400 Original-Received: from [206.190.39.45] (helo=web51902.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1DfmJR-0001cu-1Q for help-gnu-emacs@gnu.org; Tue, 07 Jun 2005 18:12:45 -0400 Original-Received: (qmail 6707 invoked by uid 60001); 7 Jun 2005 22:09:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Y/G03tajrkMc/gmLhwi83U6fz7SJuOXgOxpNopbk9OC7920+wgvgu2TAfx9i4N9JYPrBKp5WzUb/muNxDrQY7m8poHXa9gPJwoh5pHqrrMl7U1u/ZG3zHJ/zaYVRNkz2+ApKTN21wlWt4W+RrTh7drl6H582jtpLXstFBWWA8QM= ; Original-Received: from [208.11.76.5] by web51902.mail.yahoo.com via HTTP; Tue, 07 Jun 2005 15:09:08 PDT Original-To: help-gnu-emacs@gnu.org 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:27325 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27325 I would like /* */ comments to fontify differently from // comments (in jde-mode). I added the following to my .emacs but // line comments are still fontified using font-lock-comment-face. (defface new-font-lock-comment-face '((t (:foreground "Red")))) (add-hook 'font-lock-mode-hook (function (lambda () (setq font-lock-keywords (append font-lock-keywords '(("//.*$" (0 'new-font-lock-comment-face)))))))) How can I change the fontification of one (or the other) to use a different face? ---- Ryan Bowman There is no vi there is only Emacs ---- __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com