[Emacs-XYZ] Add kotlin-ts-mode

This commit is contained in:
Kjartan Oli Agustsson 2024-01-29 13:39:01 +00:00
parent 2dbdc73b6d
commit bcaee7e6c0
Signed by: kjartanoli
GPG Key ID: D7572FE3605EE6B0
2 changed files with 39 additions and 1 deletions

View File

@ -269,3 +269,22 @@ submode in html-mode. Mainly based on mhtml-mode.")
client requires Syncthing (server) obtainable from https://syncthing.net")
(license gpl3+)))
(define-public emacs-kotlin-ts-mode
(package
(name "emacs-kotlin-ts-mode")
(version "20231222.1345")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.com/bricka/emacs-kotlin-ts-mode.git")
(commit "c884b3442806a21cbcf28ac24853f05da8ac6658")))
(sha256
(base32 "139a201kd8hg21jrkww86xdjwx4r586cwv9i1ypclb4mswjahgay"))))
(build-system emacs-build-system)
(home-page "https://gitlab.com/bricka/emacs-kotlin-ts-mode")
(synopsis "A mode for editing Kotlin files based on tree-sitter")
(description
"This package uses the `treesit functionality added in Emacs 29 to provide a nice
mode for editing Kotlin code.")
(license gpl3+)))

View File

@ -1 +1,20 @@
(define-module (kjartan packages tree-sitter))
(define-module (kjartan packages tree-sitter)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system tree-sitter)
#:use-module ((guix licenses) #:prefix license:))
(define-public tree-sitter-kotlin
(package
(name "tree-sitter-kotlin")
(version "0.3.1")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/fwcd/tree-sitter-kotlin/archive/refs/tags/" version".tar.gz"))
(sha256 (base32 "1k88aa94nl6fiwcxpl7q2b96jxxvq39ajplplddn7d0pymkz7dvn"))))
(build-system tree-sitter-build-system)
(home-page "https://fwcd.github.io/tree-sitter-kotlin")
(synopsis "Kotlin grammar for Tree-Sitter")
(description "Kotlin language grammar for Tree-Sitter.")
(license license:expat)))