Variable: ruby-block-indent
ruby-block-indent is a customizable variable defined in
ruby-mode.el.gz.
Value
t
Documentation
Non-nil to align the body of a block to the statement's start.
The body and the closer will be aligned to the column where the statement containing the block starts. Example:
foo.bar
.each do
baz
end
If nil, it will be aligned instead to the beginning of the line containing the block's opener:
foo.bar
.each do
baz
end
Only has effect when ruby-use-smie is t.
This variable was added, or its default value changed, in Emacs 29.1.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defcustom ruby-block-indent t
"Non-nil to align the body of a block to the statement's start.
The body and the closer will be aligned to the column where the
statement containing the block starts. Example:
foo.bar
.each do
baz
end
If nil, it will be aligned instead to the beginning of the line
containing the block's opener:
foo.bar
.each do
baz
end
Only has effect when `ruby-use-smie' is t."
:type 'boolean
:safe 'booleanp
:version "29.1")