PHP-Mode
Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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'.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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 `)'.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]