fix emacs-tree-sitter

This commit is contained in:
Tim Schubert 2021-08-05 22:13:53 +02:00
parent 9822045da5
commit 1b0c4b3924
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
5 changed files with 149 additions and 46 deletions

View file

@ -2,8 +2,11 @@
(setq org-directory "~/src/notes/org/")
(with-eval-after-load 'treemacs
(define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action))
(defun fixed-tree-sitter-langs-install-grammars (&optional skip-if-installed version os keep-bundle) ())
(advice-add 'tree-sitter-langs-install-grammars :override #'fixed-tree-sitter-langs-install-grammars)
(use-package! tree-sitter
:config
(cl-pushnew (expand-file-name "~/.tree-sitter") tree-sitter-load-path)
(require 'tree-sitter-langs)
(global-tree-sitter-mode)
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))

View file

@ -1,2 +1,3 @@
(package! direnv)
(package! tree-sitter)
(package! tree-sitter-langs)