From 6e711d91e47e5944be807a776952c89cbf701c23 Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Sat, 7 Jun 2025 08:15:11 -0400 Subject: [PATCH] gnu: Add emacs-typst-ts-mode. * gnu/packages/emacs-xyz.scm (emacs-typst-ts-mode): New variable. Change-Id: I114d8bcfff6104fc7a23307858dd59879f7fc3c4 Signed-off-by: Hilton Chain --- gnu/packages/emacs-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 0acf7f15a13e5138fd589a2062d8674f81fad0fb..f2394115d1c17089ca6054be20150a9df04bbd84 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -160,6 +160,7 @@ ;;; Copyright © 2025 Kurome ;;; Copyright © 2025 Anderson Torres ;;; Copyright © 2025 Jake Forster +;;; Copyright @ 2025 Andrew Wong ;;; ;;; This file is part of GNU Guix. ;;; @@ -9772,6 +9773,37 @@ which-func, navigation and basic beautify and completion features to navigate and edit VHDL files.") (license license:gpl3+))) +(define-public emacs-typst-ts-mode + (let ((commit "972dc69d6b8a3f8983f6b8000654f59c8a8d05ba") + (revision "0")) + ;; Releases are not tagged, so use commits that change the "Version:" + ;; keyword in the main file. + (package + (name "emacs-typst-ts-mode") + (version (git-version "0.12.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/meow_king/typst-ts-mode") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "167kdgbxp8n721xnka803lzgwxrfx4h6m4m2ip0lnfxi2fv007zv")) + (snippet #~(begin (delete-file "test/basic-syntax.pdf"))))) + (build-system emacs-build-system) + (propagated-inputs (list tree-sitter-typst)) + ;; There is a 'test' directory, but it is for use during development. + ;; There are no automated tests. + (arguments (list #:tests? #f)) + (home-page "https://codeberg.org/meow_king/typst-ts-mode") + (synopsis "Typst tree-sitter mode") + (description + "@code{typst-ts-mode} is a tree-sitter mode for the Typst typesetting and +markup language, providing automatic (re-)compilation, structural navigation, +symbol and documentation lookup, and more.") + (license license:gpl3+)))) + (define-public emacs-mode-line-bell (package (name "emacs-mode-line-bell")