[emacs] A little interactive tree-sitter installer
This commit is contained in:
parent
8a6aed69f6
commit
81f0b75fad
1 changed files with 4 additions and 2 deletions
|
|
@ -337,8 +337,10 @@
|
|||
;; (add-to-list 'major-mode-remap-alist '(rust-mode . rust-ts-mode))
|
||||
)
|
||||
|
||||
;; Install them all:
|
||||
;; (mapc #'treesit-install-language-grammar (mapcar #'car treesit-language-source-alist))
|
||||
(defun install-known-tree-sitter-grammars ()
|
||||
"Install all known tree-sitter grammars."
|
||||
(interactive)
|
||||
(mapc #'treesit-install-language-grammar (mapcar #'car treesit-language-source-alist)))
|
||||
|
||||
;; 2023-08-28 Maybe I like line numbers everywhere? Who can say?
|
||||
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue