[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need for "-ts-mode" modes

From: Richard Stallman
Subject: Re: Need for "-ts-mode" modes
Date: Thu, 29 Dec 2022 23:05:24 -0500

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > I think we should not enable docker-ts-mode in auto-mode-alist if 
(treesit-language-available-p 'dockerfile) is nil.

  > I don't see how this could be accomplished, since whether three-sitter
  > is available for a language is only known at run time, and
  > auto-mode-alist is in files.el, which is preloaded.

It would be possible for `docker-ts-mode' to check whether tree-sitter
is available for the Docker language, and DTRT if not.

Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]