From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kgold@watson.ibm.com (kgold) Newsgroups: gmane.emacs.help Subject: Re: How do I setup an extremely simple font-lock mode? Date: 23 May 2003 15:02:11 GMT Organization: IBM T.J. Watson Research Center Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1053703493 12546 80.91.224.249 (23 May 2003 15:24:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 23 May 2003 15:24:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 23 17:24:49 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 19JENE-0002zq-00 for ; Fri, 23 May 2003 17:22:24 +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 19JEGX-00067b-U4 for gnu-help-gnu-emacs@m.gmane.org; Fri, 23 May 2003 11:15:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!an02.austin.ibm.com!ausnews.austin.ibm.com!newsfeed.btv.ibm.com!news.btv.ibm.com!kgold Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: alpha.watson.ibm.com Original-X-Trace: news.btv.ibm.com 1053702131 18810 9.2.16.245 (23 May 2003 15:02:11 GMT) Original-X-Complaints-To: news@btv.ibm.com Original-NNTP-Posting-Date: 23 May 2003 15:02:11 GMT X-Newsreader: xrn 9.01 Originator: kgold@watson.ibm.com Original-Xref: shelby.stanford.edu gnu.emacs.help:113623 Original-To: help-gnu-emacs@gnu.org 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:10118 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10118 Matt Noel writes: > 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. Related question. I use log4j as a Java logger. It prefixes each line with DEBUG: INFO: ERROR: WARN: FATAL: Is there a "log4j" mode which colorizes these. -- -- Ken Goldman kgold@watson.ibm.com 914-784-7646