[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Re: Tree-sitter doc question
From: |
Drew Adams |
Subject: |
RE: [External] : Re: Tree-sitter doc question |
Date: |
Thu, 8 Dec 2022 17:01:24 +0000 |
>>> a.k.a.
>>> (add-to-list 'auto-mode-alist ("\\.[ch]\\'" . c-ts-mode))
>> a.k.a.
>> (push '("\\.[ch]\\'" . c-ts-mode) auto-mode-alist)
>
> spoiled for choice, again!
Yes, but not if the first arg to `add-to-list'
is computed instead of just a quoted symbol.
(defun foo () (intern (concat "auto-" "mode-alist")))
(add-to-list (foo) ("\\.[ch]\\'" . c-ts-mode))
- Tree-sitter doc question, Ergus, 2022/12/08
- Re: Tree-sitter doc question, Eli Zaretskii, 2022/12/08
- Message not available
- Re: Tree-sitter doc question, Eli Zaretskii, 2022/12/08
- Re: Tree-sitter doc question, Felix, 2022/12/08
- Re: Tree-sitter doc question, Eli Zaretskii, 2022/12/08
- Re: Tree-sitter doc question, Stefan Kangas, 2022/12/08
- Re: Tree-sitter doc question, Juanma Barranquero, 2022/12/08
- Re: Tree-sitter doc question, Felix, 2022/12/08
- RE: [External] : Re: Tree-sitter doc question,
Drew Adams <=
- Re: Tree-sitter doc question, Eli Zaretskii, 2022/12/08
- Re: Tree-sitter doc question, Eli Zaretskii, 2022/12/08
- Re: Tree-sitter doc question, Stefan Monnier, 2022/12/08
- Re: Re: Tree-sitter doc question, Pedro Andres Aranda Gutierrez, 2022/12/09
- Re: Tree-sitter doc question, Eli Zaretskii, 2022/12/09
- Re: Tree-sitter doc question, Pedro Andres Aranda Gutierrez, 2022/12/10
- Re: Tree-sitter doc question, Eli Zaretskii, 2022/12/10
- Re: Tree-sitter doc question, Pedro Andres Aranda Gutierrez, 2022/12/10
- Re: Tree-sitter doc question, João Paulo Labegalini de Carvalho, 2022/12/10
- Re: Tree-sitter doc question, Pedro Andres Aranda Gutierrez, 2022/12/11