summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-23 03:44:47 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-23 03:44:47 +0200
commit4197b10f1c3a44f1b43238258e09a72b309b6521 (patch)
tree57a29ab7d05d59cd9c7bf679e0968e1fc1f6e9f4 /.config/emacs/init.el
parent9dffe32c72d6da58d9e7aa2bb8530bf9ff2eb8f4 (diff)
emacs: Prefer js-ts-mode
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el4
1 files changed, 3 insertions, 1 deletions
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