auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Replace \begin{exer} with %%Exercise n\par\begin{exer}, n a


From: David Kastrup
Subject: Re: [AUCTeX] Replace \begin{exer} with %%Exercise n\par\begin{exer}, n a counter
Date: Wed, 08 Jun 2005 11:12:33 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

David Arnold <address@hidden> 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




reply via email to

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