[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: elisp how to insert text at end of each line
From: |
Michael Heerdegen |
Subject: |
Re: elisp how to insert text at end of each line |
Date: |
Wed, 10 Apr 2013 20:07:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
acomber <deedexy@gmail.com> writes:
> I tried:
>
> (while (search-forward "\n")
> (insert "My text to insert")
> )
>
> and tried using $ symbol.
>From LISP: You want `search-forward-regexp'. Or better, use
`end-of-line'.
Interactively:
C-M-% (query-replace-regexp)
$ RET
some text RET
Or indeed, multiple-cursors.el also does things like that very well.
Regards,
Michael.
- Re: elisp how to insert text at end of each line,
Michael Heerdegen <=