diff options
-rw-r--r-- | .config/emacs/config.org | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/emacs/config.org b/.config/emacs/config.org index dc7e06e..ef99206 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -772,6 +772,14 @@ already installed unfortunately, but it’s easy enough to do manually. (toml "https://github.com/tree-sitter/tree-sitter-toml") (yaml "https://github.com/ikatyang/tree-sitter-yaml"))) + (defun mango-treesit-install () + "Install all the tree-sitter grammars in ‘treesit-language-source-alist’. + This function does not assert whether or not the grammar is already installed, + making it useful for updating existing grammars." + (interactive) + (dolist (spec treesit-language-source-alist) + (treesit-install-language-grammar (car spec)))) + ;; Automatically install missing grammars (thread-last (mapcar #'car treesit-language-source-alist) |