Start playing with Emacs Tree-sitter

This commit is contained in:
Gerard Vermeulen 2022-12-05 18:40:32 +01:00
parent 00917bb83b
commit 78e67f1624
1 changed files with 15 additions and 0 deletions

View File

@ -310,6 +310,21 @@ The [[info:emacs#Init File][init file (info)]] does not load the ~custom-file~ a
(add-to-list 'initial-frame-alist '(width . 180)))
#+end_src
* [[https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/notes/tree-sitter/starter-guide?h=feature/tree-sitter][Emacs Tree-sitter]]
:PROPERTIES:
:CUSTOM_ID: sec:emacs-tree-sitter
:END:
#+caption[Customize Emacs Tree-sitter]:
#+caption: Customize Emacs Tree-sitter.
#+name: lst:customize-emacs-tree-sitter
#+begin_src emacs-lisp
(when (require 'treesit nil t)
(let ((tselp (expand-file-name "~/VCS/tree-sitter-module/dist/")))
(when (file-exists-p tselp)
(add-to-list 'treesit-extra-load-path tselp))))
#+end_src
* [[info:emacs#Package Installation][Install the selected packages (info)]]
:PROPERTIES:
:CUSTOM_ID: sec:install-selected-packages