From eef25d232e19d2034fe68003d976e2e4c44dfaf4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 21 Sep 2024 07:45:34 +0200 Subject: emacs: Prefer ‘c-ts-mode’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.config/emacs/init.el') 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 -- cgit v1.2.3