|
From: | C K Kashyap |
Subject: | Re: String replace with lisp code |
Date: | Mon, 18 Jul 2011 13:37:31 +0530 |
M-x query-replace-regexp,
\(sea\)
RET
\,(progn (or count (setq count 1))(setq count (1+ count))(concat "(" (number-to-string count) ")" \1))
RET
;;;;;;;;;;;;
\,EXPR
evaluates the _expression_ and the takes the result for replacement.
Andreas
--
https://launchpad.net/python-mode
https://launchpad.net/s-x-emacs-werkstatt/
[Prev in Thread] | Current Thread | [Next in Thread] |