refactor(:lang): redo tree-sitter hooks
- bind to major-mode-local-vars-hook instead of major mode hook - bind the autodef tree-sitter! instead of the functions.
This commit is contained in:
parent
7a7565cedf
commit
7f814e5d99
18 changed files with 32 additions and 65 deletions
|
@ -307,7 +307,6 @@ If rtags or rdm aren't available, fail silently instead of throwing a breaking e
|
|||
|
||||
;; Tree sitter
|
||||
(eval-when! (featurep! +tree-sitter)
|
||||
(add-hook! '(c-mode-hook
|
||||
c++-mode-hook)
|
||||
#'turn-on-tree-sitter-mode
|
||||
#'+tree-sitter-keys-mode))
|
||||
(add-hook! '(c-mode-local-vars-hook
|
||||
c++-mode-local-vars-hook)
|
||||
#'tree-sitter!))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue