This commit is contained in:
Zelong Kuang
2026-02-25 22:12:47 +11:00
parent c32094700d
commit b7832a60d1
10 changed files with 121 additions and 98 deletions

View File

@@ -4,12 +4,14 @@
:ensure nil
:init (setq-default c-basic-offset 2))
(when (treesit-available-p)
(use-package c-ts-mode
:ensure nil
:functions treesit-available-p
:init
(setq c-ts-mode-indent-offset 2)
(setq-default c-basic-offset 2)
(when (boundp 'major-mode-remap-alist)
(add-to-list 'major-mode-remap-alist '(c-mode . c-ts-mode))