Variable: editorconfig-indentation-alist

editorconfig-indentation-alist is a customizable variable defined in editorconfig.el.gz.

Value

((cmake-mode cmake-tab-width) (coffee-mode coffee-tab-width)
 (feature-mode feature-indent-offset feature-indent-level)
 (fsharp-mode fsharp-continuation-offset fsharp-indent-level
	      fsharp-indent-offset)
 (haskell-mode haskell-indent-spaces haskell-indent-offset
	       haskell-indentation-layout-offset
	       haskell-indentation-left-offset
	       haskell-indentation-starter-offset
	       haskell-indentation-where-post-offset
	       haskell-indentation-where-pre-offset shm-indent-spaces)
 (haxor-mode haxor-tab-width) (jade-mode jade-tab-width)
 (js2-jsx-mode js2-basic-offset sgml-basic-offset)
 (json-mode js-indent-level)
 (jsonian-mode jsonian-default-indentation)
 (kotlin-mode kotlin-tab-width)
 (LaTeX-mode . editorconfig--get-indentation-latex-mode)
 (livescript-mode livescript-tab-width)
 (magik-ts-mode magik-indent-level) (meson-mode meson-indent-basic)
 (mips-mode mips-tab-width) (pug-mode pug-tab-width)
 (python-mode . editorconfig--get-indentation-python-mode)
 (rjsx-mode js-indent-level sgml-basic-offset)
 (scala-mode scala-indent:step) (swift-mode swift-mode:basic-offset)
 (web-mode . editorconfig--get-indentation-web-mode))

Documentation

Alist of indentation setting methods by modes.

This is a fallback used for those modes which don't set editorconfig-indent-size-vars.

Each element should look like (MODE . SETTING) where SETTING should obey the same rules as editorconfig-indent-size-vars, i.e. be either a list of variable names or a function returning a list of settings in the form (VARIABLE . VALUE).

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

View in manual

Aliases

edconf-indentation-alist (obsolete since 0.5)

Source Code

;; Defined in /usr/src/emacs/lisp/editorconfig.el.gz
(defcustom editorconfig-indentation-alist
  ;; For contributors: Sort modes in alphabetical order
  '((cmake-mode cmake-tab-width)
    (coffee-mode coffee-tab-width)
    (feature-mode feature-indent-offset
                  feature-indent-level)
    (fsharp-mode fsharp-continuation-offset
                 fsharp-indent-level
                 fsharp-indent-offset)
    (haskell-mode haskell-indent-spaces
                  haskell-indent-offset
                  haskell-indentation-layout-offset
                  haskell-indentation-left-offset
                  haskell-indentation-starter-offset
                  haskell-indentation-where-post-offset
                  haskell-indentation-where-pre-offset
                  shm-indent-spaces)
    (haxor-mode haxor-tab-width)
    (jade-mode jade-tab-width)
    (js2-jsx-mode js2-basic-offset sgml-basic-offset)
    (json-mode js-indent-level)
    (jsonian-mode jsonian-default-indentation)
    (kotlin-mode kotlin-tab-width)
    (LaTeX-mode . editorconfig--get-indentation-latex-mode)
    (livescript-mode livescript-tab-width)
    (magik-ts-mode magik-indent-level)
    (meson-mode meson-indent-basic)
    (mips-mode mips-tab-width)
    (pug-mode pug-tab-width)
    (python-mode . editorconfig--get-indentation-python-mode)
    (rjsx-mode js-indent-level sgml-basic-offset)
    (scala-mode scala-indent:step)
    (swift-mode swift-mode:basic-offset)
    (web-mode . editorconfig--get-indentation-web-mode)
    )
  "Alist of indentation setting methods by modes.

This is a fallback used for those modes which don't set
`editorconfig-indent-size-vars'.

Each element should look like (MODE . SETTING) where SETTING
should obey the same rules as `editorconfig-indent-size-vars',
i.e. be either a list of variable names or a function returning
a list of settings in the form (VARIABLE . VALUE)."
  :type '(alist :key-type symbol
                :value-type (choice function
                                    (repeat
                                     (choice symbol
                                             (cons symbol integer)))))
  :version "30.1"
  :risky t)