treesit-auto icon indicating copy to clipboard operation
treesit-auto copied to clipboard

emacs 29.1 cannot get this to load

Open danielboston38 opened this issue 11 months ago • 2 comments

I added your example to my init.el and when I try to load treesit-auto or edit any settings for it it's not there. what am I doing wrong? this is my init.el https://bpa.st/WO4A

danielboston38 avatar Jan 19 '25 01:01 danielboston38

You might need to add an autoload for global-treesit-auto-mode; I notice that the package doesn't contain autoload directives.

Here's what I've got:

(use-package treesit-auto :ensure t
  :commands global-treesit-auto-mode
  :custom
  (treesit-auto-install 'prompt)
  :config
  (treesit-auto-add-to-auto-mode-alist 'all)
  (global-treesit-auto-mode +1))

chrisbarrett avatar Jan 29 '25 19:01 chrisbarrett

Related: https://github.com/renzmann/treesit-auto/issues/44

chrisbarrett avatar Jan 29 '25 19:01 chrisbarrett