|
From: | JD Smith |
Subject: | Re: On treesit preference for "consumer" modes |
Date: | Sat, 26 Aug 2023 13:17:54 -0400 |
Got it, thanks. There has always been some ambiguity when there are several modes competing, but usually there is a “dominant strain” consumer modes can adopt as the default.
This would be a top-level user option, but it would be “one stop shopping” for the user. I.e. they would not need to configure this and `major-mode-remap-alist’. One (likely too) simple idea: a function to ask emacs “What mode would you enable if I opened /path/to/file.EXT”, without actually having to open it. Consumer modes could check that for relevant paths and extensions, and opt to use that mode (if everything else checks out). . if a ts mode is already loaded (featurep test) The consumer-mode may be the first to use it. . if auto-mode-alist defines a ts mode for the relevant files I mentioned that in my #5. I suppose that’s a cousin of my (too) simple idea above, except for dir-locals etc. |
[Prev in Thread] | Current Thread | [Next in Thread] |