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

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

Apply replacement on word occurring at point using a lisp function


From: uzibalqa
Subject: Apply replacement on word occurring at point using a lisp function
Date: Fri, 12 Aug 2022 19:48:20 +0000

I want to insert the letter `k' for words with initial `cog', `col', `com', 
`con', `cor', `coun', `cum'."

For this I have written

(replace-regexp "\\<\\(co[glmnr]\\|coun\\|cum\\)" "k")

What I want to do is apply the replacement on the word occurring at point using 
a lisp function. How can this be achieved?

reply via email to

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