fix emacs-tree-sitter
This commit is contained in:
parent
9822045da5
commit
1b0c4b3924
5 changed files with 149 additions and 46 deletions
|
@ -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))
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
(package! direnv)
|
||||
(package! tree-sitter)
|
||||
(package! tree-sitter-langs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue