all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* arbitrary persistent highlight
@ 2008-08-15  3:35 kin
  2008-08-15  4:50 ` Xah
  2008-08-15  8:55 ` najja
  0 siblings, 2 replies; 4+ messages in thread
From: kin @ 2008-08-15  3:35 UTC (permalink / raw)
  To: help-gnu-emacs

I'm looking for a way to highlight arbitrary line(s) in a buffer
persistently, for a emacs session.  Is there a way?

-kin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arbitrary persistent highlight
  2008-08-15  3:35 arbitrary persistent highlight kin
@ 2008-08-15  4:50 ` Xah
  2008-08-15  4:51   ` Xah
  2008-08-15  8:55 ` najja
  1 sibling, 1 reply; 4+ messages in thread
From: Xah @ 2008-08-15  4:50 UTC (permalink / raw)
  To: help-gnu-emacs

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/^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arbitrary persistent highlight
  2008-08-15  4:50 ` Xah
@ 2008-08-15  4:51   ` Xah
  0 siblings, 0 replies; 4+ messages in thread
From: Xah @ 2008-08-15  4:51 UTC (permalink / raw)
  To: help-gnu-emacs


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 <xah...@gmail.com> wrote:
> 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/
>
> ☄



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arbitrary persistent highlight
  2008-08-15  3:35 arbitrary persistent highlight kin
  2008-08-15  4:50 ` Xah
@ 2008-08-15  8:55 ` najja
  1 sibling, 0 replies; 4+ messages in thread
From: najja @ 2008-08-15  8:55 UTC (permalink / raw)
  To: help-gnu-emacs


http://www.emacswiki.org/cgi-bin/wiki/VisibleBookmarks

On Aug 15, 11:35 am, 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?
>
> -kin



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-15  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-15  3:35 arbitrary persistent highlight kin
2008-08-15  4:50 ` Xah
2008-08-15  4:51   ` Xah
2008-08-15  8:55 ` najja

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.