[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unifying "foo-mode"s and "foo-ts-mode"s
From: |
Richard Stallman |
Subject: |
Re: Unifying "foo-mode"s and "foo-ts-mode"s |
Date: |
Sat, 31 Dec 2022 22:03:55 -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. ]]]
The use of tree-sitter logically ought to be a minor mode.
We don't define c-mode and c-fl-mode to specify whether to enable Font
Lock mode in a file of C code. Rather, We have c-mode, plus another
orthogonal command, font-lock-mode.
Likewise, the Emacs user interface ought to have another minor-mode
command, tree-sitter-mode.
How it "really works" under the hood is another issue.
Users will be able to control the default for enabling tree-sitter in
various major modes with the existing general mechanism that is used
to control whether to enable Font Lodk mode and other minor modes: the
major mode's mode hook.
--
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)
- Re: Unifying "foo-mode"s and "foo-ts-mode"s, (continued)
- Re: Unifying "foo-mode"s and "foo-ts-mode"s, Eli Zaretskii, 2022/12/30
- Re: Unifying "foo-mode"s and "foo-ts-mode"s, Philip Kaludercic, 2022/12/30
- Re: Unifying "foo-mode"s and "foo-ts-mode"s, Eli Zaretskii, 2022/12/30
- Re: Unifying "foo-mode"s and "foo-ts-mode"s, Philip Kaludercic, 2022/12/30
- Re: Unifying "foo-mode"s and "foo-ts-mode"s, Stefan Monnier, 2022/12/30
- Re: Unifying "foo-mode"s and "foo-ts-mode"s, Eli Zaretskii, 2022/12/30
- Re: Unifying "foo-mode"s and "foo-ts-mode"s,
Richard Stallman <=
- Re: Unifying "foo-mode"s and "foo-ts-mode"s, Gregory Heytings, 2022/12/30