guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/05: gnu: Add emacs-zig-mode.


From: guix-commits
Subject: 05/05: gnu: Add emacs-zig-mode.
Date: Fri, 4 Nov 2022 19:31:07 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit a65cd830084b20f95d39f565ea5cd0da8e8b09ad
Author: jgart <jgart@dismail.de>
AuthorDate: Fri Nov 4 15:52:25 2022 -0500

    gnu: Add emacs-zig-mode.
    
    * gnu/packages/emacs-xyz.scm (emacs-zig-mode): New variable.
    
    Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
 gnu/packages/emacs-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index adfe803aa3..6a79820105 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5517,6 +5517,36 @@ detecting specific uses of Ruby, e.g. when using rails, 
and using a
 appropriate console.")
     (license license:gpl3+)))
 
+(define-public emacs-zig-mode
+  (let ((commit "dbc648f5bca8f3b9ca2cc7827f326f5530115144")
+        (revision "0"))
+    (package
+      (name "emacs-zig-mode")
+      (version (git-version "0.0.8" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/ziglang/zig-mode";)
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0hwkkwhc5b2pzyqa2h0xw8wxijsrp1fk70fhyv8hx19shzlc4la3"))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #:tests? #t
+        #:emacs emacs
+        #:test-command #~(list "emacs" "--batch"
+                               "-l" "zig-mode.el"
+                               "-f" "ert-run-tests-batch-and-exit")))
+      (home-page "https://github.com/ziglang/zig-mode/";)
+      (synopsis "Zig mode for Emacs")
+      (description
+       "This package provides syntax highlighting and automatic indentation
+for the Zig programming language in Emacs.")
+      (license license:gpl3+))))
+
 (define-public emacs-znc
   (package
     (name "emacs-znc")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]