From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Newsgroups: gmane.emacs.help Subject: Font-lock in .log file Date: Wed, 16 Jan 2008 16:12:46 +0100 Message-ID: <5v6l7fF1l6s64U1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200498054 17817 80.91.229.12 (16 Jan 2008 15:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2008 15:40:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 16 16:41:17 2008 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 1JFAO1-0004Uz-Hm for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jan 2008 16:41:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFANd-0000Kn-31 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jan 2008 10:40:41 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-X-Trace: individual.net E7hg+DCdhzpvE2luSFH3hgldtADKmnvBxJX9n6VwSgzbESBivv Cancel-Lock: sha1:0oufqC7WVrwPGi4sq36TPl01UoQ= User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) Original-Xref: shelby.stanford.edu gnu.emacs.help:155347 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:50754 Archived-At: Hi, i'd like to highlight lines containing "Error:" in red and lines containing "Note:" in blue every time a xxx.log file is opened or a xxx.log buffer is reverted from a file. Currently I am using the functions (highlight-lines-matching-regexp "ERROR:" 'hi-red-b) (highlight-lines-matching-regexp "NOTE:" 'hi-blue-b) but I don't know to what hook I should add them. Does anybody have an idea? Thanks for help in advance, Will