On 2023-02-06 18:25, Simon Tournier wrote: > Hi, > > On sam., 04 févr. 2023 at 20:27, Demis Balbach wrote: > >> My understanding is that I need to provide emacs with tree-sitter >> support as an input for this to work, which I did, but it'll fail with >> >> --8<---------------cut here---------------start------------->8--- >> Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "treesit") >> --8<---------------cut here---------------end--------------->8--- >> >> Maybe someone can help me here. I tried looking at other package >> definitions, but I don't know if there are any emacs packages that >> require tree-sitter packaged in Guix yet. > > Could you share your definition of Emacs variant allowing tree-sitter? > > Please note it is not clear for me if the tree-sitter parsers should be > provided by Guix since 1. they are auto-generated and so it is against > the effort to debootstrap and 2. they are often very large. > > Cheers, > simon Hello Simon, as far as I understand emacs is already packaged with tree-sitter support in Guix (I didn't know this when I wrote my last message). Regarding packaging emacs packages that leverage tree-sitter, one just has to provide the correct emacs version as an argument, like: --8<---------------cut here---------------start------------->8--- ;; ... (arguments `(#:emacs ,emacs-next-pgtk ;; ... )) --8<---------------cut here---------------end--------------->8--- Thanks to Andrew Troping for showing me that. -- Best regards / Mit freundlichen Grüßen, Demis Balbach