[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: repeating input with different outputs
From: |
Pascal J. Bourguignon |
Subject: |
Re: repeating input with different outputs |
Date: |
Wed, 28 Mar 2012 19:25:02 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
ishi soichi <soichi777@gmail.com> writes:
> 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?
Type:
(require 'cl) C-x C-e
(loop for i from 1 to 46 do (insert (format "chapter 4.%d\n" i))) C-x C-e
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: repeating input with different outputs,
Pascal J. Bourguignon <=