From 3013df75316aeff946ad9366422c8ed39ea30796 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 30 Jan 2023 12:08:02 -0600 Subject: Add treesit-auto I also rebuilt Emacs to include tree-sitter, which was a whole journey. All for something of questionable utility :upside-down smiley face: --- init.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 80b7d85..f3a19f0 100644 --- a/init.el +++ b/init.el @@ -870,3 +870,16 @@ With PREFIX, prompt to change the current dictionary." (inhibit-same-window . t))) (add-hook 'gauche-mode-hook #'enable-gauche-paredit-mode) (add-hook 'inferior-scheme-mode-hook #'enable-gauche-paredit-mode)) + +(use-package treesit-auto + ;; XXX: I don't really get the utility of this package, but I spent a ton of + ;; time figuring out how to properly build it ... so here it is. + :when (treesit-available-p) + :vc (:url "https://github.com/renzmann/treesit-auto") + :config + (setopt treesit-extra-load-path + ;; https://github.com/casouri/tree-sitter-module/ + `(,(expand-file-name "~/misc/tree-sitter-module/dist/"))) + (treesit-auto-apply-remap) + (define-advice treesit-install-language-grammar (:after (&rest _) apply-remap) + (treesit-auto-apply-remap))) -- cgit 1.4.1-21-gabe81