diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-21 07:45:34 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-21 07:45:34 +0200 |
commit | eef25d232e19d2034fe68003d976e2e4c44dfaf4 (patch) | |
tree | e29dfd50c82db2d9c53b9b1f4d81db0e681aaab3 /.config/emacs/init.el | |
parent | 936fa945a952a376ddb034ded11bc91cd931820d (diff) |
emacs: Prefer ‘c-ts-mode’
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r-- | .config/emacs/init.el | 4 |
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 |