c-electric-brace

c-electric-brace is an interactive compiled Lisp function in `cc-cmds.el'.


(c-electric-brace ARG)

Insert a brace.

If `c-electric-flag' is non-nil, the brace is not inside a literal and a
numeric ARG hasn't been supplied, the command performs several electric
actions:

(a) If the auto-newline feature is turned on (indicated by "/la" on
the mode line) newlines are inserted before and after the brace as
directed by the settings in `c-hanging-braces-alist'.

(b) Any auto-newlines are indented. The original line is also
reindented unless `c-syntactic-indentation' is nil.

(c) If auto-newline is turned on, various newline cleanups based on the
settings of `c-cleanup-list' are done.