From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb Newsgroups: gmane.emacs.help Subject: Re: How to enable the syntax highlighting for comments within files having a specific extension? Date: Thu, 27 Aug 2009 13:57:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8521420b-cab4-4458-b7bd-197e5e3575a5@r38g2000yqn.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1251409343 18230 80.91.229.12 (27 Aug 2009 21:42:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2009 21:42:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 27 23:42:16 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 1MgmjY-0004Uh-2Z for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Aug 2009 23:42:16 +0200 Original-Received: from localhost ([127.0.0.1]:46098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgmjX-0001An-CY for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Aug 2009 17:42:15 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!r38g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 85.169.63.25 Original-X-Trace: posting.google.com 1251406630 14398 127.0.0.1 (27 Aug 2009 20:57:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 27 Aug 2009 20:57:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r38g2000yqn.googlegroups.com; posting-host=85.169.63.25; posting-account=h4jubQkAAAAUHCYfIkDF1aN-fj6NacZO User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172456 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:67594 Archived-At: On August 14, 2009 4:21:56 PM CEDT, gento wrote: > I've made this modification to .emacs > > (add-hook 'find-file-hooks > (lambda () > (when (string-match "\\.jou$" (buffer-file-name)) > (setq comment-start "/") > (font-lock-add-keywords nil '("\\(/.*\\)$" (1 font-lock-comment-face))) > ) > ) > ) > > but I still have no coloring of the commented lines :( It works for me (with emacs 22.3.1). Have you evaluated the above form? -- __Pascal Bourguignon__