help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arbitrary persistent highlight


From: Xah
Subject: Re: arbitrary persistent highlight
Date: Thu, 14 Aug 2008 21:51:34 -0700 (PDT)
User-agent: G2/1.0

O, if you just want to highligh in a session, just use:

M-x highlight-lines-matching-regexp

  Xah
∑ http://xahlee.org/

☄

On Aug 14, 9:50 pm, Xah <address@hidden> wrote:
> kin <address@hidden> wrote:
> > I'm looking for a way to highlight arbitrary line(s) in a buffer
> > persistently, for a emacs session.  Is there a way?
>
> put this as first line into your file:
>
> -*- eval: (highlight-regexp "\"\\([^\"]+\\)\"") -*-
>
> you can add a commont char in front.
> You'll need to tweak the regex of course. The above highlights between
> double quotes.
> You can also use highlight-lines-matching-regexp instead.
>
>   Xah
>http://xahlee.org/
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]