Manual
7. Stuttering
The stutter mode is a mode that affects a function to a key. For example, when you use the ENTER
key, the associated function will create a new line and indent it.
7.1 Customization
-
- `php-stutter-mode'
Type: boolean
Default value: `t'
Description: If `t'; enable the stuttering. Is indicated in
the modeline by "/s" after the mode name and can be toggled by `php-stutter-mode'.
7.2 Functions
-
- SPACE
If in comment, indent the comment and add new line if necessary.
In other case, add a space.
- ENTER
Insert a new line and indent it.
- }
Insert a new line and indent it.
- ;
Insert a new line and indent it.
- *
If the previous character is a `/', a prompt will ask you for inserting a
`/* */' comment type (with the SPACE key) or
`/** * */' coment type (with the * key).
- (
If the previous character is a `(', the `((' will be replaced by `['.
If the previous character is a `[', the `[(' will be replaced by `{'.
In other case, insert a `('.
- )
If the previous character is a `)', the `))' will be replaced by `]'.
If the previous character is a `]', the `])' will be replaced by `}'.
In other case, insert a `)'.
|