Variable: c-ts-mode-indent-style

c-ts-mode-indent-style is a customizable variable defined in c-ts-mode.el.gz.

Value

gnu

Documentation

Style used for indentation.

The selected style could be one of GNU, K&R, LINUX or BSD. If the supplied styles don't suffice, the value could be a function instead. This function takes no arguments and is expected to return a list of indent RULEs as described in treesit-simple-indent-rules. Note that the list of RULEs doesn't need to contain the language symbol.

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

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/c-ts-mode.el.gz
(defcustom c-ts-mode-indent-style 'gnu
  "Style used for indentation.

The selected style could be one of GNU, K&R, LINUX or BSD.  If the
supplied styles don't suffice, the value could be a function instead.
This function takes no arguments and is expected to return a list of
indent RULEs as described in `treesit-simple-indent-rules'.  Note that
the list of RULEs doesn't need to contain the language symbol."
  :version "29.1"
  :type '(choice (symbol :tag "Gnu" gnu)
                 (symbol :tag "K&R" k&r)
                 (symbol :tag "Linux" linux)
                 (symbol :tag "BSD" bsd)
                 (function :tag "A function for user customized style" ignore))
  :set #'c-ts-mode--indent-style-setter
  :safe 'c-ts-indent-style-safep
  :group 'c)