From 83ce7c861e1d02092a0affa95283566f65bd07d1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 5 Jan 2023 08:40:07 +0200 Subject: [PATCH] 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) --- etc/NEWS | 5 ++--- lisp/textmodes/toml-ts-mode.el | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 91e470306c7..4f88aa82cd9 100644 --- a/etc/NEWS +++ b/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'. diff --git a/lisp/textmodes/toml-ts-mode.el b/lisp/textmodes/toml-ts-mode.el index 1b68632f58c..2430c5f3e76 100644 --- a/lisp/textmodes/toml-ts-mode.el +++ b/lisp/textmodes/toml-ts-mode.el @@ -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 -- 2.39.5