[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: repeating input with different outputs
From: |
Tim Landscheidt |
Subject: |
Re: repeating input with different outputs |
Date: |
Sat, 15 Oct 2011 03:14:26 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
ishi soichi <soichi777@gmail.com> wrote:
> I have a question about typing (or programming, or maybe a macro).
> Say, I'm writing a text (which can be in any mode, html-mode, cpp-mode, or
> whatever)
> I would like to input like
> chapter 4.1
> chapter 4.2
> chapter 4.3
> ...
> chapter 4.46
> So, it is very tedious. I would rather set up a program or a command that
> can do this job instantaneously.
> Could Emacs do this?
Of course :-). For example, try M-: (dotimes (i 46) (insert
(format "chapter 4.%d\n" (+ i 1)))) RET.
Tim
- repeating input with different outputs, ishi soichi, 2011/10/14
- Re: repeating input with different outputs, Jambunathan K, 2011/10/14
- Re: repeating input with different outputs, Rustom Mody, 2011/10/14
- Re: repeating input with different outputs, Ken Goldman, 2011/10/14
- Re: repeating input with different outputs,
Tim Landscheidt <=
- Re: repeating input with different outputs, Eric Abrahamsen, 2011/10/15
- Re: repeating input with different outputs, Andreas Röhler, 2011/10/15