Function: neocaml-set-font-lock-level

neocaml-set-font-lock-level is an interactive and natively compiled function defined in neocaml.el.

Signature

(neocaml-set-font-lock-level LEVEL)

Documentation

Set treesit-font-lock-level to LEVEL in the current buffer and refontify.

LEVEL ranges from 1 (comments and definitions only) to 4 (maximum fontification). The change is buffer-local; use M-x customize-variable (customize-variable) on treesit-font-lock-level to set the default for new buffers.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/ahssdx4rwzyxhyhavpn0bkznk13xrggi-emacs-packages-deps/share/emacs/site-lisp/elpa/neocaml-20260907.2015/neocaml.el
(defun neocaml-set-font-lock-level (level)
  "Set `treesit-font-lock-level' to LEVEL in the current buffer and refontify.
LEVEL ranges from 1 (comments and definitions only) to 4 (maximum
fontification).  The change is buffer-local; use \\[customize-variable] on
`treesit-font-lock-level' to set the default for new buffers."
  (interactive (list (read-number "Font-lock level (1-4): " treesit-font-lock-level)))
  (setq-local treesit-font-lock-level level)
  (treesit-font-lock-recompute-features)
  (font-lock-flush)
  (message "[neocaml] Font-lock level set to %d" level))