Next: Text Prev: Major Modes Up: Top
Indent current line "appropriately" in a mode-dependent fashion.
Perform RET followed by TAB (`newline-and-indent').
Merge two lines (`delete-indentation'). This would cancel out the
effect of LFD.
Split line at point; text on the line after point becomes a new
line indented to the same column that it now starts in
Move (forward or back) to the first non-blank character on the
current line (`back-to-indentation').
Indent several lines to same column (`indent-region').
Shift block of lines rigidly right or left (`indent-rigidly').
Indent from point to the next prespecified tab stop column
Indent from point to under an indentation point in the previous
Most programming languages have some indentation convention. For
Lisp code, lines are indented according to their nesting in
parentheses. The same general idea is used for C code, though details
Use the TAB command to indent a line whatever the language. Each
major mode defines this command to perform indentation appropriate for
the particular language. In Lisp mode, TAB aligns a line according to
its depth in parentheses. No matter where in the line you are when you
type TAB, it aligns the line as a whole. In C mode, TAB implements a
subtle and sophisticated indentation style that knows about many
aspects of C syntax.
In Text mode, TAB runs the command `tab-to-tab-stop', which indents
to the next tab stop column. You can set the tab stops with `M-x
- Indentation Commands
- Various commands and techniques for indentation.
- Tab Stops
- You can set arbitrary "tab stops" and then
indent to the next tab stop when you want to.
- Just Spaces
- You can request indentation using just spaces.
automatically generated by info2www