diff options
| author | Richard M. Stallman | 2000-04-17 16:08:07 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2000-04-17 16:08:07 +0000 |
| commit | e61482c045a1914aa45cf8e44c800189a769540b (patch) | |
| tree | 485aa28bdf13fa275fbb1e9920c838eaa3b6cf12 /man/programs.texi | |
| parent | 0daee095185565b1527c570d8ad17dbafc7601c8 (diff) | |
| download | emacs-e61482c045a1914aa45cf8e44c800189a769540b.tar.gz emacs-e61482c045a1914aa45cf8e44c800189a769540b.zip | |
*** empty log message ***
Diffstat (limited to 'man/programs.texi')
| -rw-r--r-- | man/programs.texi | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/man/programs.texi b/man/programs.texi index 78698d5f501..a15450747f9 100644 --- a/man/programs.texi +++ b/man/programs.texi | |||
| @@ -1101,7 +1101,7 @@ the variable @code{c-comment-only-line-offset} (@pxref{Comments in C}). | |||
| 1101 | Emacs comes with several predefined indentation styles for C and related | 1101 | Emacs comes with several predefined indentation styles for C and related |
| 1102 | modes, including @code{gnu}, @code{k&r}, @code{bsd}, @code{stroustrup}, | 1102 | modes, including @code{gnu}, @code{k&r}, @code{bsd}, @code{stroustrup}, |
| 1103 | @code{linux}, @code{python}, @code{java}, @code{whitesmith}, | 1103 | @code{linux}, @code{python}, @code{java}, @code{whitesmith}, |
| 1104 | @code{ellemtel}, and @code{cc-mode}. The default style is @code{gnu}. | 1104 | @code{ellemtel}, @code{cc-mode}, and @code{user}. |
| 1105 | 1105 | ||
| 1106 | @findex c-set-style | 1106 | @findex c-set-style |
| 1107 | @vindex c-default-style | 1107 | @vindex c-default-style |
| @@ -1122,6 +1122,14 @@ mode and which indentation style to use for it. For example, | |||
| 1122 | specifies an explicit choice for Java mode, and the default @samp{gnu} | 1122 | specifies an explicit choice for Java mode, and the default @samp{gnu} |
| 1123 | style for the other C-like modes. | 1123 | style for the other C-like modes. |
| 1124 | 1124 | ||
| 1125 | The style @code{gnu} defines the formatting recommend by the GNU | ||
| 1126 | Project; it is the default, so as to encourage the indentation we | ||
| 1127 | recommend. The style @code{user} is the same as @code{gnu} but | ||
| 1128 | incorporates any changes made in variables such as @code{c-basic-offset} | ||
| 1129 | and @code{c-offsets-alist} by your @file{~/.emacs} file. To make them | ||
| 1130 | take effect, you should select the style @code{user} with | ||
| 1131 | @code{c-set-style} or @code{c-default-style}. | ||
| 1132 | |||
| 1125 | @findex c-add-style | 1133 | @findex c-add-style |
| 1126 | To define a new C indentation style, call the function | 1134 | To define a new C indentation style, call the function |
| 1127 | @code{c-add-style}: | 1135 | @code{c-add-style}: |
| @@ -1136,8 +1144,8 @@ Here @var{name} is the name of the new style (a string), and | |||
| 1136 | @code{(@var{variable} . @var{value})}. The variables you specify should | 1144 | @code{(@var{variable} . @var{value})}. The variables you specify should |
| 1137 | be among those documented in @ref{Variables for C Indent}. | 1145 | be among those documented in @ref{Variables for C Indent}. |
| 1138 | 1146 | ||
| 1139 | If @var{use-now} is non-@code{nil}, @code{c-add-style} switches to the | 1147 | If @var{use-now} is non-@code{nil}, @code{c-add-style} selects the new |
| 1140 | new style after defining it. | 1148 | style after defining it. |
| 1141 | 1149 | ||
| 1142 | @node Matching | 1150 | @node Matching |
| 1143 | @section Automatic Display Of Matching Parentheses | 1151 | @section Automatic Display Of Matching Parentheses |