summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2023-01-30 12:08:02 -0600
committerCase Duckworth2023-01-30 12:08:02 -0600
commit3013df75316aeff946ad9366422c8ed39ea30796 (patch)
tree5ca7cdd1c97ebdab0079eef1c0013b8c6c223220 /init.el
parentAdd pandoc-mode (diff)
downloademacs-3013df75316aeff946ad9366422c8ed39ea30796.tar.gz
emacs-3013df75316aeff946ad9366422c8ed39ea30796.zip
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:
Diffstat (limited to 'init.el')
-rw-r--r--init.el13
1 files changed, 13 insertions, 0 deletions
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."
870 (inhibit-same-window . t))) 870 (inhibit-same-window . t)))
871 (add-hook 'gauche-mode-hook #'enable-gauche-paredit-mode) 871 (add-hook 'gauche-mode-hook #'enable-gauche-paredit-mode)
872 (add-hook 'inferior-scheme-mode-hook #'enable-gauche-paredit-mode)) 872 (add-hook 'inferior-scheme-mode-hook #'enable-gauche-paredit-mode))
873
874(use-package treesit-auto
875 ;; XXX: I don't really get the utility of this package, but I spent a ton of
876 ;; time figuring out how to properly build it ... so here it is.
877 :when (treesit-available-p)
878 :vc (:url "https://github.com/renzmann/treesit-auto")
879 :config
880 (setopt treesit-extra-load-path
881 ;; https://github.com/casouri/tree-sitter-module/
882 `(,(expand-file-name "~/misc/tree-sitter-module/dist/")))
883 (treesit-auto-apply-remap)
884 (define-advice treesit-install-language-grammar (:after (&rest _) apply-remap)
885 (treesit-auto-apply-remap)))