From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jyangstat@yahoo.com (jyangstat@yahoo.com) Newsgroups: gmane.emacs.help Subject: Re: Highlight comment in gauss mode Date: 9 Jan 2004 04:46:28 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <65ef16d2.0401090446.2bbf0fa1@posting.google.com> 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1073663898 30192 80.91.224.253 (9 Jan 2004 15:58:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2004 15:58:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 09 16:58:06 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 1Aez1R-0007qo-00 for ; Fri, 09 Jan 2004 16:58:06 +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 1AexCh-0007c6-Oa for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jan 2004 09:01:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 150.198.138.127 Original-X-Trace: posting.google.com 1073652388 25236 127.0.0.1 (9 Jan 2004 12:46:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 9 Jan 2004 12:46:28 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:119921 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:15854 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15854 Hi Stefan, Thank you so much. You save me so much time and teach me a lot. It is working as I want. James Stefan Monnier wrote in message news:... > > 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