Variable: ruby-method-call-indent

ruby-method-call-indent is a customizable variable defined in ruby-mode.el.gz.

Value

t

Documentation

Non-nil to use the structural indentation algorithm.

The method call will be aligned to the implicit parent expression, according to the operator precedence:

  foo = subject
          .update(
            1
          )

Set it to nil to align to the beginning of the statement:

  foo = subject
    .update(
      1
    )

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-method-call-indent t
  "Non-nil to use the structural indentation algorithm.

The method call will be aligned to the implicit parent
expression, according to the operator precedence:

  foo = subject
          .update(
            1
          )

Set it to nil to align to the beginning of the statement:

  foo = subject
    .update(
      1
    )

Only has effect when `ruby-use-smie' is t."
  :type 'boolean
  :safe 'booleanp
  :version "29.1")