From f7bf880b1e616c72b539c72ec5507ba554382d6b Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Thu, 9 May 2024 21:40:16 -0500 Subject: Remove typescript mode --- emacs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/emacs b/emacs index 786a8d4..3ef9445 100644 --- a/emacs +++ b/emacs @@ -272,7 +272,7 @@ :ensure t :defer t) -(use-package treesit) +(treesit) (setq treesit-language-source-alist '((bash "https://github.com/tree-sitter/tree-sitter-bash") @@ -343,8 +343,7 @@ (add-hook 'terraform-mode-hook 'my-terraform-mode-init)) (add-hook 'terraform-mode-hook 'eglot-ensure) -(unless (package-installed-p 'typescript-mode) - (package-install 'typescript-mode)) + (add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode)) (add-to-list 'auto-mode-alist '("\\.tsx\\'" . tsx-ts-mode)) -- cgit v1.2.3