Comments in C Modes
C mode and related modes use a number of variables for controlling
comment format.
c-comment-only-line-offset
- Extra offset for line which contains only the start of a comment. It
can be either an integer or a cons cell of the form
(non-anchored-offset . anchored-offset), where
non-anchored-offset is the amount of offset given to
non-column-zero anchored comment-only lines, and anchored-offset
is the amount of offset to give column-zero anchored comment-only lines.
Just an integer as value is equivalent to (val . 0).
c-comment-start-regexp
- This buffer-local variable specifies how to recognize the start of a comment.
c-hanging-comment-ender-p
- If this variable is
nil, c-fill-paragraph leaves the
comment terminator of a block comment on a line by itself. The default
value is t, which puts the comment-end delimiter */ at the
end of the last line of the comment text.
c-hanging-comment-starter-p
- If this variable is
nil, c-fill-paragraph leaves the
starting delimiter of a block comment on a line by itself. The default
value is t, which puts the comment-start delimiter /* at
the beginning of the first line of the comment text.
|