From 4197b10f1c3a44f1b43238258e09a72b309b6521 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 23 Sep 2024 03:44:47 +0200 Subject: emacs: Prefer js-ts-mode --- .config/emacs/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/emacs/init.el b/.config/emacs/init.el index e9d52e0..0c42f82 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -448,7 +448,9 @@ existing grammars." (seq-remove #'treesit-language-available-p) (mapc #'treesit-install-language-grammar)) - (add-to-list 'auto-mode-alist '("\\.[ch]\\'" . c-ts-mode))) + (dolist (pair '(("\\.[ch]\\'" . c-ts-mode) + ("\\.js\\'" . js-ts-mode))) + (add-to-list 'auto-mode-alist pair))) ;;; Language Server Protocol (use-package eglot -- cgit v1.2.3