Function: markdown-ts--apply-settings
markdown-ts--apply-settings is a byte-compiled function defined in
markdown-ts-mode.el.gz.
Signature
(markdown-ts--apply-settings)
Documentation
Apply settings that file-local or directory-local variables may set.
Called from the mode's :after-hook, which runs after local variables are applied, so their values take effect.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--apply-settings ()
"Apply settings that file-local or directory-local variables may set.
Called from the mode's `:after-hook', which runs after local variables
are applied, so their values take effect."
(when (and (derived-mode-p 'markdown-ts-mode)
(not markdown-ts--set-up-inline))
;; These rely on font-lock and `outline-search-function', which
;; `treesit-major-mode-setup' has already set up.
(markdown-ts--set-hide-markup markdown-ts-hide-markup)
(markdown-ts--set-inline-images markdown-ts-inline-images)
;; Respect the user's default outline folding.
(pcase markdown-ts-default-folding
('show-all (ignore))
('fold-all (outline-hide-sublevels 1))
('fold-headings (outline-show-all)
(outline-hide-region-body (point-min) (point-max))))
;; `outline-minor-mode' applied this before local variables were set.
(when outline-default-state
(outline-apply-default-state))))