mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
bug#78901: [PATCH] js-ts-mode: Fix auto-mode-alist regexp
Align the js-ts-mode entry with the javascript-mode entries in the
default auto-mode-alist value in lisp/files.el. Otherwise, js-ts-mode is
not associated with .js files.
* lisp/progmodes/js.el (js-ts-mode): Fix auto-mode-alist regexp.
Fixes: 2023-01-20 6b2f85caa6 "Make tree-sitter based modes optional"
This commit is contained in:
parent
982938363a
commit
6299eb0fe5
1 changed files with 1 additions and 1 deletions
|
|
@ -3961,7 +3961,7 @@ See `treesit-thing-settings' for more information.")
|
||||||
(treesit-major-mode-setup)
|
(treesit-major-mode-setup)
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist
|
(add-to-list 'auto-mode-alist
|
||||||
'("\\(\\.js[mx]\\|\\.har\\)\\'" . js-ts-mode))))
|
'("\\(\\.js[mx]?\\|\\.har\\)\\'" . js-ts-mode))))
|
||||||
|
|
||||||
(derived-mode-add-parents 'js-ts-mode '(js-mode))
|
(derived-mode-add-parents 'js-ts-mode '(js-mode))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue