[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inserting a space in front of all lines
From: |
Jeffery B. Rancier |
Subject: |
Re: inserting a space in front of all lines |
Date: |
Wed, 28 Jan 2004 20:33:53 -0500 |
User-agent: |
Gnus/5.110001 (No Gnus v0.1) Emacs/21.3 (windows-nt) |
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?
,----[ C-h k C-x h ]
| C-x h runs the command mark-whole-buffer
| which is an interactive compiled Lisp function in `simple'.
| (mark-whole-buffer)
|
| Put point at beginning and mark at end of buffer.
| You probably should not use this function in Lisp programs;
| it is usually a mistake for a Lisp function to use any subroutine
| that uses or sets the mark.
`----
followed by:
,----[ C-h f indent-region RET ]
| indent-region is an interactive compiled Lisp function in `indent'.
| (indent-region START END COLUMN)
|
| Indent each nonblank line in the region.
| With prefix no argument, indent each line using `indent-according-to-mode',
| or use `indent-region-function' to do the whole region if that's non-nil.
| If there is a fill prefix, make each line start with the fill prefix.
| With argument COLUMN, indent each line to that column.
|
| When you call this from a program, START and END specify
| the region to indent, and COLUMN specifies the indentation column.
| If COLUMN is nil, then indent each line according to the mode.
`----
--
Thanks,
Jeff