all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Will <schimpanski@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Font-lock in .log file
Date: Wed, 16 Jan 2008 16:12:46 +0100	[thread overview]
Message-ID: <5v6l7fF1l6s64U1@mid.individual.net> (raw)

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

             reply	other threads:[~2008-01-16 15:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-16 15:12 Will [this message]
2008-01-17  9:38 ` Font-lock in .log file Xah Lee
2008-01-17 10:48 ` Niels Giesen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5v6l7fF1l6s64U1@mid.individual.net \
    --to=schimpanski@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.