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

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

Re: Is there a way to hightlight region permanently?


From: Stephen Berman
Subject: Re: Is there a way to hightlight region permanently?
Date: Sun, 02 Jul 2017 14:24:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Sun, 02 Jul 2017 11:27:52 +0200 Marcin Borkowski <mbork@mbork.pl> wrote:

> Hi all,
>
> I'd like to have something like `highlight-regexp' and
> `unhighlight-regexp', but for the current region.  I.e., something that
> stays highlighted after I move point and/or mark, and whose highlighting
> I can easily turn off when no longer needed.
>
> Any hints?  Or should I just code that myself?
>
> TIA,

If you move point or mark, then you change the region, so what do you
want to do with the old region (which would still be highlighted)?
Maybe secondary selection will serve your purposes:

(info "(emacs) Secondary Selection")

Steve Berman



reply via email to

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