From 30f0a2d20dc751af05c390a718cc347d4e0b4243 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 8 Sep 2024 18:36:00 +0400 Subject: [PATCH] asdfjk;hlasdf;ljasdf;kljasdf;ljkasdf;ljkasdf;jkl --- config/emacs/emacs.org | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 4c00ba9b..e63981c1 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -912,12 +912,15 @@ this should be useful later #+end_src ** Typescript #+begin_src emacs-lisp - (add-hook 'typescript-ts-mode 'eglot-ensure) - (add-hook 'tsx-ts-mode 'eglot-ensure) + (add-hook 'typescript-ts-mode 'eglot-ensure) + (add-hook 'tsx-ts-mode 'eglot-ensure) - (setq treesit-language-source-alist + (add-to-list 'auto-mode-alist '(".*\\.ts" . typescript-ts-mode)) + (add-to-list 'auto-mode-alist '(".*\\.tsx" . tsx-ts-mode)) + + (setq treesit-language-source-alist '((typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src" nil nil) - (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src" nil nil))) + (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src" nil nil))) #+end_src ** Astro #+begin_src emacs-lisp