Call treesit-auto-add-to-auto-mode-alist on config

This commit is contained in:
Evie Litherland-Smith 2023-12-31 09:31:52 +00:00
parent 161b77ef3d
commit 2b1c29e551

View file

@ -701,7 +701,9 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(treesit-font-lock-level 4))
(use-package treesit-auto
:config (global-treesit-auto-mode +1))
:config
(treesit-auto-add-to-auto-mode-alist)
(global-treesit-auto-mode +1))
(setq rust-ts-mode-hook rust-mode-hook)
(setq python-ts-mode-hook python-mode-hook)