summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 2d045fb..9de6544 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -413,7 +413,9 @@ existing grammars."
(thread-last
(mapcar #'car treesit-language-source-alist)
(seq-remove #'treesit-language-available-p)
- (mapc #'treesit-install-language-grammar)))
+ (mapc #'treesit-install-language-grammar))
+
+ (add-to-list 'auto-mode-alist '("\\.[ch]\\'" . c-ts-mode)))
;;; Language Server Protocol
(use-package eglot