[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Turning on/off tree-sitter modes
From: |
Dmitry Gutov |
Subject: |
Re: Turning on/off tree-sitter modes |
Date: |
Tue, 26 Nov 2024 02:40:38 +0200 |
User-agent: |
Mozilla Thunderbird |
On 26/11/2024 02:35, Dmitry Gutov wrote:
Maybe like this:
Or a more compact version:
Major Mode Remap Alist:
Alist:
INS DEL From major mode: nil
To mode (or function): ignore
diff --git a/lisp/files.el b/lisp/files.el
index 9c105dbe1a5..0ffc725c36e 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3606,7 +3606,8 @@ major-mode-remap-alist
FUNCTION is typically a major mode which \"does the same thing\" as
MODE, but can also be nil to hide other entries (either in this var or
in `major-mode-remap-defaults') and means that we should call MODE."
- :type '(alist (symbol) (function)))
+ :type '(alist :key-type (symbol :tag "From major mode")
+ :value-type (function :tag "To mode (or function)")))
(defvar major-mode-remap-defaults nil
"Alist mapping file-specified modes to alternative modes.
- Re: Turning on/off tree-sitter modes, (continued)
- Re: Turning on/off tree-sitter modes, Stephen Berman, 2024/11/24
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/23
- Re: Turning on/off tree-sitter modes, Juri Linkov, 2024/11/24
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/24
- Re: Turning on/off tree-sitter modes, Juri Linkov, 2024/11/24
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/24
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/24
- Re: Turning on/off tree-sitter modes, Juri Linkov, 2024/11/25
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/25
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/25
- Re: Turning on/off tree-sitter modes,
Dmitry Gutov <=
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/26
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/26
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/26
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/26
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/26
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/26
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/26
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/26
- Re: Turning on/off tree-sitter modes, Juri Linkov, 2024/11/27
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/27