Variable: js-chain-indent

js-chain-indent is a customizable variable defined in js.el.gz.

Value

nil

Documentation

Use "chained" indentation.

Chained indentation applies when the current line starts with ".". If the previous expression also contains a "." at the same level, then the "."s will be lined up:

  let x = svg.mumble()
             .chained;

This variable was added, or its default value changed, in Emacs 26.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defcustom js-chain-indent nil
  "Use \"chained\" indentation.
Chained indentation applies when the current line starts with \".\".
If the previous expression also contains a \".\" at the same level,
then the \".\"s will be lined up:

  let x = svg.mumble()
             .chained;"
  :version "26.1"
  :type 'boolean
  :safe 'booleanp)