On 2021-08-08 23:29, Pierre Langlois wrote: > 4. Finally, emacs support! > > emacs-tree-sitter can be used for syntax highlighting, replacing > font-lock. The tree-sitter runtime library is built as a Rust crate > and exposed to emacs using a module thanks to the rust-emacs crate. > > Then emacs-tree-sitter-core provides just the core APIs as exposed by > the rust module, then emacs-tree-sitter integrates it with emacs' > syntax highlighting (and probably other things). > > Finally, we bundle together the various language grammars into a > single emacs-tree-sitter-langs package so that they can get loaded > along with their respective major modes. Note that there are grammars > left to support which I've not yet managed to package, but what we > have already is a good start I think :-). So far I've tested C++, > Rust, Python and JavaScript and JSON. > > * gnu: Add rust-bindgen@0.56. > * gnu: Add rust-tree-sitter. > * gnu: rust-emacs-module: Update to 0.16. > * gnu: rust-emacs-macros: Update to 0.17. > * gnu: rust-emacs: Update to 0.17. > * gnu: Add emacs-tree-sitter-core. > * gnu: Add emacs-tree-sitter. > * gnu: Add emacs-tree-sitter-langs. Hi Pierre! Implemented a loading of tree-sitter grammars in Emacs using guix native-search-paths and built-in treesit package. I did it for emacs package, but it will work only with Emacs 29 and greater (right now it's emacs-next and similiar packages), until emacs package updated to version 29 it won't take any effect on it except providing one more environment variable in guix profile. I tested it with emacs-next-pgtk, the patch is attached below, please let me know what do you think!