Function: mhtml-ts-mode--tag-relative-indent-offset

mhtml-ts-mode--tag-relative-indent-offset is a byte-compiled function defined in mhtml-ts-mode.el.gz.

Signature

(mhtml-ts-mode--tag-relative-indent-offset SYM VAL)

Documentation

Custom setter for mhtml-ts-mode-tag-relative-indent.

Apart from setting the default value of SYM to VAL, also change the value of SYM in mhtml-ts-mode buffers to VAL. SYM should be mhtml-ts-mode-tag-relative-indent, and VAL should be t, nil or ignore. When sym is mhtml-ts-mode-tag-relative-indent set the value of mhtml-ts-mode--js-css-indent-offset to 0 if VAL is t, otherwise to mhtml-ts-mode-js-css-indent-offset.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/mhtml-ts-mode.el.gz
(defun mhtml-ts-mode--tag-relative-indent-offset (sym val)
  "Custom setter for `mhtml-ts-mode-tag-relative-indent'.
Apart from setting the default value of SYM to VAL, also change the
value of SYM in `mhtml-ts-mode' buffers to VAL.  SYM should be
`mhtml-ts-mode-tag-relative-indent', and VAL should be t, nil or
`ignore'.  When sym is `mhtml-ts-mode-tag-relative-indent' set the
value of `mhtml-ts-mode--js-css-indent-offset' to 0 if VAL is t,
otherwise to `mhtml-ts-mode-js-css-indent-offset'."
  (set-default sym val)
  (when (eq sym 'mhtml-ts-mode-tag-relative-indent)
    (setq
     mhtml-ts-mode--js-css-indent-offset
     (if (eq val t)
         mhtml-ts-mode-js-css-indent-offset
       0))))