Jonathan
Jonathan

Reputation: 385

Emacs Regex - shortkey

i have no clue about lisp... i have a small feature that i would like to have, if someone can help me it will be great.

when i want to do regex i do C-M-s and enter my text, most of the time i'm searching for whole word so i do something like this

C-M-s \[^] (The ^ is to match exact word without _)

i would like to have bindkey/function that i press the key, its open text box search i enter my text and its auto add \< at the begin and > at the end

can you please assist?

Thanks Jony

Upvotes: 1

Views: 49

Answers (1)

Drew
Drew

Reputation: 30699

Your description is not clear (to me), but it sounds like you just want to do incremental word search.

In that case, just do it: M-s w. See the Emacs manual, node Word Search.

Upvotes: 1

Related Questions