IRC channel logs
2026-10-03.log
back to list of logs
<sham1>Has anyone else had any luck with using Guix installed tree-sitter grammars with Emacs. It's giving me "Cannot activate tree-sitter, because language grammar for typescript is unavailable" since I'm trying to test with TS to start with <sham1>For some reason it's looking under ~/.config/emacs/tree-sitter/ instead of going to /gnu/store/<hash>-tree-sitter-typescript-0.23.2/lib/tree-sitter/ <sham1>Okay, so just to keep some kind of a running log if someone else ever gets this trouble, apparently it'll first look at "treesit-extra-load-path" which happens to be empty, then under "tree-sitter" that's in the "user-emacs-directory", and then the place where the system loads dynamic libraries from by default, but that's of course not really a thing for guix <sham1>I guess I'll be programmatically generating all of the relevant load paths for the tree-sitter packages *grumbles* <sham1>Oh nevermind, I can just reference "$HOME/.guix-home/profile/lib/tree-sitter" and add stuff from the other sitters <sham1>And it turns out to tbe entirely unnecessary since TREE_SITTER_GRAMMAR_PATH is an environment variable that gets set on the profile, and it'll just point to whatever needs to be loaded and Emacs will just look at that. Oh well, I learnt from this experience <snihil>sham1: “TREE_SITTER_GRAMMAR_PATH”: Oh, thanks I was looking for something like that!