[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
This chapter describes the Emacs commands that add, remove, or adjust indentation.
Indent the current line “appropriately” in a mode-dependent fashion.
Perform <RET> followed by <TAB> (newline-and-indent
).
Merge the previous and the current line (delete-indentation
). This
would cancel the effect of a preceding C-j.
Split the current line at point; text on the line after point becomes a new
line indented to the same column where point is located (split-line
).
Move (forward or back) to the first nonblank character on the current line
(back-to-indentation
).
Indent lines in the region to the same column (indent-region
).
Shift lines in the region rigidly right or left (indent-rigidly
).
Indent from point to the next prespecified tab stop column
(tab-to-tab-stop
).
Indent from point to under an indentation point in the previous line.
Emacs supports four general categories of operations that could all be called `indentation':
A tab character is displayed as a stretch of whitespace which extends to the next display tab stop position, and the default width of a tab stop is eight. @xref{Text Display}, for more details.
indent-relative
.
Type <TAB> to do syntax-driven indentation, in a mode that supports it. It realigns the current line according with the syntax of the preceding lines. No matter where in the line you are when you type <TAB>, it aligns the line as a whole.
Normally, most of the above methods insert an optimal mix of tabs and spaces to align to the desired column. Voir la section Tabs vs. Spaces, for how to disable use of tabs. However, C-q <TAB> always inserts a tab, even when tabs are disabled for the indentation commands.
29.1 Indentation Commands and Techniques | Various commands and techniques for indentation. | |
29.2 Tab Stops | You can set arbitrary "tab stops" and then indent to the next tab stop whenyou want to. | |
29.3 Tabs vs. Spaces | You can request indentation using just spaces. |
[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Ce document a été généré par Eric Reinbold le 23 Février 2009 en utilisant texi2html 1.78.