summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-21 07:45:34 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-21 07:45:34 +0200
commiteef25d232e19d2034fe68003d976e2e4c44dfaf4 (patch)
treee29dfd50c82db2d9c53b9b1f4d81db0e681aaab3 /.config
parent936fa945a952a376ddb034ded11bc91cd931820d (diff)
emacs: Prefer ‘c-ts-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 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