Variable: markdown-ts-toc-update-before-save-mode
markdown-ts-toc-update-before-save-mode is a buffer-local variable
defined in markdown-ts-mode-x.el.gz.
Documentation
Non-nil if Markdown-Ts-Toc-Update-Before-Save mode is enabled.
Use the command markdown-ts-toc-update-before-save-mode(var)/markdown-ts-toc-update-before-save-mode(fun) to change this
variable.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode-x.el.gz
(define-minor-mode markdown-ts-toc-update-before-save-mode
"If enabled, update `markdown-ts-mode' tables of contents before saving."
:init-value nil
:global nil
:lighter markdown-ts-toc-update-before-save-mode-lighter
(if (derived-mode-p 'markdown-ts-mode)
(if markdown-ts-toc-update-before-save-mode
(add-hook 'before-save-hook #'markdown-ts-toc-generate nil 'local)
(remove-hook 'before-save-hook #'markdown-ts-toc-generate 'local))
(setq markdown-ts-toc-update-before-save-mode nil)
(lwarn 'markdown-ts-toc-update-before-save-mode
:warning
"Minor mode valid only in `markdown-ts-mode' buffers.")))