From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: arbitrary persistent highlight
Date: Thu, 14 Aug 2008 21:50:12 -0700 (PDT) [thread overview]
Message-ID: <a384c07f-e420-4171-87ec-0aa7991f1923@q5g2000prf.googlegroups.com> (raw)
In-Reply-To: 51d4b622-bc0d-4b9d-a459-eceb6202e20d@i20g2000prf.googlegroups.com
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/
☄
next prev parent reply other threads:[~2008-08-15 4:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 3:35 arbitrary persistent highlight kin
2008-08-15 4:50 ` Xah [this message]
2008-08-15 4:51 ` Xah
2008-08-15 8:55 ` najja
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a384c07f-e420-4171-87ec-0aa7991f1923@q5g2000prf.googlegroups.com \
--to=xahlee@gmail.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).