[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Font-lock in .log file
From: |
Will |
Subject: |
Font-lock in .log file |
Date: |
Wed, 16 Jan 2008 16:12:46 +0100 |
User-agent: |
Thunderbird 2.0.0.9 (Windows/20071031) |
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
- Font-lock in .log file,
Will <=