help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inserting a space in front of all lines


From: kgold
Subject: Re: inserting a space in front of all lines
Date: 29 Jan 2004 19:02:49 GMT

Jade Dang <jaddang@cisco.com> writes:

> I have a file with thousands of lines and I want to indent all of
> them. Is there an easy way to do this?

You've received replies for indenting.  

To insert arbitrary text, look at the rectangle commands.  In
particular, after defining a rectangle with all the lines of interest
and of zero width starting in the first column:

C-x r t runs the command string-rectangle
   which is an interactive autoloaded Lisp function in `rect'.

Replace rectangle contents with STRING on each line.
The length of STRING need not be the same as the rectangle width.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]