Variable: smie-config

smie-config is a customizable variable defined in smie.el.gz.

Value

nil

Documentation

User configuration of SMIE indentation.

This is a list of elements (MODE . RULES), where RULES is a list of elements describing when and how to change the indentation rules. Each RULE element should be of the form (NEW KIND TOKEN NORMAL), where KIND and TOKEN are the elements passed to smie-rules-function, NORMAL is the value returned by smie-rules-function and NEW is the value with which to replace it.

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

View in manual

Probably introduced at or before Emacs version 24.4.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/smie.el.gz
(defcustom smie-config nil
  ;; FIXME: there should be a file-local equivalent.
  "User configuration of SMIE indentation.
This is a list of elements (MODE . RULES), where RULES is a list
of elements describing when and how to change the indentation rules.
Each RULE element should be of the form (NEW KIND TOKEN NORMAL),
where KIND and TOKEN are the elements passed to `smie-rules-function',
NORMAL is the value returned by `smie-rules-function' and NEW is the
value with which to replace it."
  :version "24.4"
  ;; FIXME improve value-type.
  :type '(choice (const nil)
                 (alist :key-type symbol))
  :initialize #'custom-initialize-set
  :set #'smie-config--setter)