Update .emacs.d/config.org

This commit is contained in:
Anthony Rodriguez 2024-07-03 19:16:29 +02:00
parent 7772335614
commit 6829197014

View file

@ -264,7 +264,6 @@ Magit is a git client in Emacs.
*** Languages *** Languages
**** tree-sitter **** tree-sitter
Tree-sitter is a built-in Emacs package that allows us to have extremely well integrated language. Here, we're setting up the list of sources, most of them being on tree-sitter's official GitHub, as well as hooking up the languages to their different modes. Tree-sitter is a built-in Emacs package that allows us to have extremely well integrated language. Here, we're setting up the list of sources, most of them being on tree-sitter's official GitHub, as well as hooking up the languages to their different modes.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq treesit-language-source-alist (setq treesit-language-source-alist
@ -286,7 +285,7 @@ Tree-sitter is a built-in Emacs package that allows us to have extremely well in
(setq treesit-font-lock-level 4) (setq treesit-font-lock-level 4)
(add-to-list 'auto-mode-alist '("\\.ts\\'" . tsx-ts-mode)) (add-to-list 'auto-mode-alist '("\\.ts\\'" . tsx-ts-mode))
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . tsx-ts-mode)) (add-to-list 'auto-mode-alist '("\\.tsx\\'" . tsx-ts-mode))
#+end_src #+end_src
#+begin_src sh #+begin_src sh
npm install -g typescript-language-server npm install -g typescript-language-server