From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Highlight comment in gauss mode Date: Thu, 08 Jan 2004 22:41:41 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <65ef16d2.0401060700.3a9f8a6a@posting.google.com> <65ef16d2.0401061620.4d7247db@posting.google.com> <65ef16d2.0401070533.2dee844@posting.google.com> <65ef16d2.0401081330.7cb1d74c@posting.google.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073603321 21213 80.91.224.253 (8 Jan 2004 23:08:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 23:08:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 09 00:08:37 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AejGX-0008AK-00 for ; Fri, 09 Jan 2004 00:08:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AejrG-0002vM-Kp for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2004 18:46:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1073601701 132.204.24.84 (Thu, 08 Jan 2004 17:41:41 EST) Original-NNTP-Posting-Date: Thu, 08 Jan 2004 17:41:41 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:119894 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15828 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15828 > Thank you very much. The format is correct now but the comment areas > do not change the color though font-lock-mode is on. Could you kindly > tell me what lisp algorithm I should add to change the comment color. > Any help is highly appreciated. The part of the code that says: (setq font-lock-defaults '(gauss-font-lock-keywords t ;; Keywords-only? t ;; Fold case? nil ;; Syntax-alist nil ;; Syntax-begin )) should say (setq font-lock-defaults '(gauss-font-lock-keywords nil ;; Keywords-only? t ;; Fold case? nil ;; Syntax-alist nil ;; Syntax-begin )) so that font-lock uses syntax-tables. Stefan