|
From: | Thorsten Jolitz |
Subject: | Re: elisp how to insert text at end of each line |
Date: | Wed, 10 Apr 2013 20:13:50 +0200 |
User-agent: | Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
acomber <deedexy@gmail.com> writes: > I tried: > > (while (search-forward "\n") > (insert "My text to insert") > ) maybe: #begin_src emacs-lisp (defun insert-at-end-of-line (text) (goto-char (point-min)) (while (not (eobp)) (end-of-line) (insert text) (next-line))) #+end_src -- cheers, Thorsten
[Prev in Thread] | Current Thread | [Next in Thread] |