From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matt Noel Newsgroups: gmane.emacs.help Subject: How do I setup an extremely simple font-lock mode? Date: Thu, 22 May 2003 13:47:55 -0700 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053636814 22056 80.91.224.249 (22 May 2003 20:53:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 20:53:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 22:53:30 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Ix1B-0005T9-00 for ; Thu, 22 May 2003 22:50:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Iwzj-0002OT-Uu for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 16:48:59 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19IwzR-0002Nq-3H for help-gnu-emacs@gnu.org; Thu, 22 May 2003 16:48:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Iwyv-0001vh-Dg for help-gnu-emacs@gnu.org; Thu, 22 May 2003 16:48:40 -0400 Original-Received: from smtpout.mac.com ([17.250.248.85]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Iwyu-0001vY-Ux for help-gnu-emacs@gnu.org; Thu, 22 May 2003 16:48:09 -0400 Original-Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h4MKm71S012830 for ; Thu, 22 May 2003 13:48:07 -0700 (PDT) Original-Received: from mac.com ([216.15.8.249]) (authenticated bits=0) by mac.com (Xserve/MantshX 2.0) with ESMTP id h4MKllB5027248 for ; Thu, 22 May 2003 13:47:48 -0700 (PDT) Original-To: help-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.552) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10065 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10065 I want to setup a very simple mode for colorizing a log file. All I need to do is highlight any lines with the string ERROR on them. I've tried reading the documentation for font-lock but it's not clear how to do this. Could someone point me to a simple example, or send one? Thanks. Matt Noel mgn000@yahoo.com or mgn000@mac.com