emacs-devel
[Top][All Lists]
Advanced

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

Re: On treesit preference for "consumer" modes


From: Eli Zaretskii
Subject: Re: On treesit preference for "consumer" modes
Date: Sat, 26 Aug 2023 20:31:23 +0300

> From: JD Smith <jdtsmith@gmail.com>
> Date: Sat, 26 Aug 2023 13:17:54 -0400
> Cc: emacs-devel@gnu.org
> 
> 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).

See set-auto-mode--apply-alist.



reply via email to

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