From 23b6abe7ccd06ad1c053b88bbc75fdf747dde48a Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:22:05 +0400 Subject: [PATCH] attempt to fix emacs config --- config/emacs/emacs.org | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 586e3ff9..4c00ba9b 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -912,15 +912,12 @@ this should be useful later #+end_src ** Typescript #+begin_src emacs-lisp - (use-package typescript-ts-mode - :mode (("\\.ts\\'" . typescript-ts-mode) - ("\\.tsx\\'" . tsx-ts-mode)) - :config + (add-hook 'typescript-ts-mode 'eglot-ensure) + (add-hook 'tsx-ts-mode 'eglot-ensure) + (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))) - :hook ((typescript-mode . eglot-ensure) - (tsx-ts-mode . eglot-ensure)) #+end_src ** Astro #+begin_src emacs-lisp