Variable: comment-inline-offset
comment-inline-offset is a customizable variable defined in
newcomment.el.gz.
Value
1
Documentation
Inline comments have to be preceded by at least this many spaces.
This is useful when style-conventions require a certain minimal offset. Python's PEP8 for example recommends two spaces, so you could do:
(add-hook 'python-mode-hook
(lambda () (setq-local comment-inline-offset 2)))
See comment-padding for whole-line comments.
This variable was added, or its default value changed, in Emacs 24.3.
Source Code
;; Defined in /usr/src/emacs/lisp/newcomment.el.gz
(defcustom comment-inline-offset 1
"Inline comments have to be preceded by at least this many spaces.
This is useful when style-conventions require a certain minimal offset.
Python's PEP8 for example recommends two spaces, so you could do:
\(add-hook \\='python-mode-hook
(lambda () (setq-local comment-inline-offset 2)))
See `comment-padding' for whole-line comments."
:version "24.3"
:type 'integer
:group 'comment)