Go to the first, previous, next, last section, table of contents.
c-mode is used for editing C source code files. Any files which end in
`.c' or `.h' are automatically edited in this mode.
It's one and only function is to try and indent lines to their correct depth,
it doesn't always get it right but it works fairly well. The keys that it
rebinds to achieve this are,
It also defines the syntax of an expression in the C language for use
with the expression commands, see section Editing Expressions.
- TAB
-
Indents the current line to what the editor thinks is the correct position.
- {
-
- }
-
- :
-
These keys are handled specially since the indentation of the line that they
are inserted on may have to be adjusted.
- Ctrl-Meta-\
-
Indents all lines which are marked by the current block.
- Command: c-mode
-
Editing mode for C source code. Automatically used for files ending in
`.c' or `.h'.
- Hook: c-mode-hook
-
This hook is called by
c-mode each time the mode is invoked.
- Variable: c-mode-tab
-
Size of tab stops used by
c-mode.
- Variable: c-mode-auto-indent
-
When non-nil RET will indent the line after splitting it.
Go to the first, previous, next, last section, table of contents.