David Arnold <[EMAIL PROTECTED]> writes:

> All,
>
> I'd like to replace each occurrence
>
> \begin{exer}
>
> with
>
> %%Exercise n
> \begin{exer}
>
> where n is a counter that is incremented on each replacement. How can
> I do this in Emacs-Auctex?

This is not an AUCTeX question.  With a suitably recent Emacs, you
might use

C-M-% \\begin{exer} RET %%Exercise \,(1+ \#) C-q C-j \& RET

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to