From f3c7c225d4ca39eeeae5f469f9f9d4f7243da4c3 Mon Sep 17 00:00:00 2001 From: Francisco-Galindo Date: Tue, 16 Sep 2025 19:28:06 -0600 Subject: [PATCH] gnu: Add emacs-treesit-auto. * gnu/packages/emacs-xyz.scm (emacs-treesit-auto): New variable. Signed-off-by: Liliana Marie Prikler --- gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 2d8aae762e26f2095426d4de3e37fb423b67939f..90e12e0690a8dabd1154d88ac2e070d6648eda46 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -28053,6 +28053,30 @@ subs, classes, etc.), and REPL interaction.") "This package provides an Emacs library to manage tree widgets.") (license license:gpl3+)))) +(define-public emacs-treesit-auto + (let ((commit "016bd286a1ba4628f833a626f8b9d497882ecdf3")) ; version bump + (package + (name "emacs-treesit-auto") + (version "1.0.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/renzmann/treesit-auto") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03bvam7cpxqp4idhd235n76qdqhsbgw7m2lphy8qqwslbmcq23m4")))) + (build-system emacs-build-system) + (arguments '(#:tests? #f)) ; no tests + (home-page "https://github.com/renzmann/treesit-auto") + (synopsis + "Automatically install and use tree-sitter major modes in Emacs 29+") + (description + "Install a tree-sitter major mode automatically. If the tree-sitter +version can't be used, fall back to the original major mode.") + (license license:gpl3)))) + (define-public emacs-md4rd (package (name "emacs-md4rd")