Make 'toml-ts-mode' optional

* etc/NEWS: Reflect the fact that 'toml-ts-mode' is optional.

* lisp/textmodes/toml-ts-mode.el (auto-mode-alist): Don't autoload
the addition of 'toml-ts-mode'.  (Bug#60559)
This commit is contained in:
Eli Zaretskii 2023-01-05 08:40:07 +02:00
parent 92f753dc19
commit 83ce7c861e
2 changed files with 2 additions and 4 deletions

View file

@ -3251,9 +3251,8 @@ extension is ".cmake".
+++
*** New major mode 'toml-ts-mode'.
A major mode based on the tree-sitter library for editing files
written in TOML, a format for writing configuration files. It is
auto-enabled for files with the ".toml" extension.
An optional major mode based on the tree-sitter library for editing
files written in TOML, a format for writing configuration files.
+++
*** New major mode 'go-ts-mode'.

View file

@ -117,7 +117,6 @@ Return nil if there is no name or if NODE is not a defun node."
(or (treesit-node-text (treesit-node-child node 1) t)
"Root table"))))
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.toml\\'" . toml-ts-mode))
;;;###autoload