summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-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