Function: conf-toml-mode

conf-toml-mode is an autoloaded, interactive and byte-compiled function defined in conf-mode.el.gz.

Signature

(conf-toml-mode)

Documentation

Conf Mode starter for TOML files.

Comments start with # and "assignments" are with =. For details see conf-mode. Example:

# Conf mode font-locks this right with M-x conf-toml-mode (conf-toml-mode)

[entry]
value = "some string"

In addition to any hooks its parent mode might have run, this mode runs the hook conf-toml-mode-hook, as the final or penultimate step during initialization.

Probably introduced at or before Emacs version 26.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/conf-mode.el.gz
;;;###autoload
(define-derived-mode conf-toml-mode conf-mode "Conf[TOML]"
  "Conf Mode starter for TOML files.
Comments start with `#' and \"assignments\" are with `='.
For details see `conf-mode'.  Example:

# Conf mode font-locks this right with \\[conf-toml-mode]

\[entry]
value = \"some string\""
  (conf-mode-initialize "#" 'conf-toml-font-lock-keywords)
  (setq-local conf-assignment-column 0)
  (setq-local conf-assignment-sign ?=))