Update .emacs.d/README.org
This commit is contained in:
parent
396d4345f8
commit
e761cff207
1 changed files with 19 additions and 18 deletions
|
@ -295,27 +295,28 @@ Magit is a git client in Emacs.
|
||||||
*** tree-sitter
|
*** tree-sitter
|
||||||
Tree-sitter is a built-in Emacs package that allows us to have extremely well integrated language grammar. 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 grammar. 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-font-lock-level 4) ;; more coloring!
|
||||||
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
|
(setq treesit-language-source-alist
|
||||||
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
|
||||||
(css "https://github.com/tree-sitter/tree-sitter-css")
|
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
||||||
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
|
(css "https://github.com/tree-sitter/tree-sitter-css")
|
||||||
(go "https://github.com/tree-sitter/tree-sitter-go")
|
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
|
||||||
(html "https://github.com/tree-sitter/tree-sitter-html")
|
(go "https://github.com/tree-sitter/tree-sitter-go")
|
||||||
(javascript "https://github.com/tree-sitter/tree-sitter-javascript" "master" "src")
|
(html "https://github.com/tree-sitter/tree-sitter-html")
|
||||||
(json "https://github.com/tree-sitter/tree-sitter-json")
|
(javascript "https://github.com/tree-sitter/tree-sitter-javascript" "master" "src")
|
||||||
(make "https://github.com/alemuller/tree-sitter-make")
|
(json "https://github.com/tree-sitter/tree-sitter-json")
|
||||||
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
|
(make "https://github.com/alemuller/tree-sitter-make")
|
||||||
(python "https://github.com/tree-sitter/tree-sitter-python")
|
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
|
||||||
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
(python "https://github.com/tree-sitter/tree-sitter-python")
|
||||||
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
|
(toml "https://github.com/tree-sitter/tree-sitter-toml")
|
||||||
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
|
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
|
||||||
(yaml "https://github.com/ikatyang/tree-sitter-yaml")))
|
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
|
||||||
(setq treesit-font-lock-level 4)
|
(yaml "https://github.com/ikatyang/tree-sitter-yaml")))
|
||||||
|
|
||||||
|
;; mode bindings to file extensions
|
||||||
(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))
|
||||||
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-ts-mode))
|
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-ts-mode))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Mail
|
* Mail
|
||||||
|
|
Loading…
Reference in a new issue