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:
parent
92f753dc19
commit
83ce7c861e
2 changed files with 2 additions and 4 deletions
5
etc/NEWS
5
etc/NEWS
|
@ -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'.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue