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

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

Re: Automatically highlight all same occurrence of same stuff which has


From: Michael Heerdegen
Subject: Re: Automatically highlight all same occurrence of same stuff which has been currently marked/selected.
Date: Sun, 21 May 2023 03:13:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hongyi Zhao <hongyi.zhao@gmail.com> writes:

> Say, I have the following:
>
> foo ...
> .. bar...
> baz foo
>
> Then when I select one of the `foo` above, the two `foo`s will be
> highlighted automatically. Any tips for achieving this?

"high-lock.el" - in particular, M-x highlight-regexp ...?  Should even
catch the region string as DEFAULT for the regexp (not regexp-quoted
though).

Michael.




reply via email to

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