How can I use emacs string-insert-rectangle operation to add a vector of numbers to a series of lines? For example, I\'ve got this shortened version of a bunch of text entri
This is a way to do it in emacs, unfortunately, this approach doesn't use string-insert-rectangle. Also, this approach rudely assumes there are more than 10 characters on every line. Hilarity will ensue if that's not the case. M-x doit will invoke it.
(defun doit ()
(interactive)
(save-excursion
(beginning-of-buffer)
(let ((n 1))
(while (< (point) (point-max))
(forward-char 10)
(insert "id" (int-to-string n) " ")
(end-of-line)
(forward-line)
(incf n)))))