[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:50:12 -0700 (PDT) |
User-agent: |
G2/1.0 |
kin <send.kin.m...@gmail.com> 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/
☄