From e05c2b407c1f61856e4fd0b91a77255f5433ca78 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 22 Aug 2024 01:22:11 -0400 Subject: [PATCH] Add treesit-auto config --- .emacs.d/init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 04f894f..e098772 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1157,6 +1157,15 @@ (setf (car (alist-get 'isort apheleia-formatters)) '(pet-executable-find "isort")))) +(use-package treesit-auto :demand :if (package-installed-p 'treesit-auto) + :config + (setq treesit-auto-install 'prompt) + (treesit-auto-add-to-auto-mode-alist 'all) + (global-treesit-auto-mode t) + + ;; Awful hack to avoid changing a bunch of things right now + (setq python-ts-mode-hook python-mode-hook)) + ;;; Local Variables (add-to-list 'safe-local-eval-forms '(outline-hide-body)) ;; Local Variables: