Subject: [bug#62921] [PATCH] gnu: emacs-gerbil-mode: Add emacs-gerbil-mode.

From: Juliana Sims <[email-masked]>
Date: Mon, 17 Apr 2023 23:37:54 -0400

* gnu/packages/emacs-xyz.scm (emacs-gerbil-mode): Add emacs-gerbil-mode.
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c1748e7f36..185dde1672 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -125,6 +125,7 @@
 ;;; Copyright © 2022 Demis Balbach <[email-masked]>
 ;;; Copyright © 2020, 2021, 2022, 2023 Andrew Tropin <[email-masked]>
 ;;; Copyright © 2023 Dominik Delgado Steuter <[email-masked]>
+;;; Copyright © 2023 Juliana Sims <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -35994,6 +35995,33 @@ (define-public emacs-fennel-mode
 Fennel code within Emacs.")
       (license license:gpl3+))))
 
+(define-public emacs-gerbil-mode
+  (package
+    (name "emacs-gerbil-mode")
+    (version "0.17.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/vyzo/gerbil")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0c0nspm659ybgmqlppdv7sxzll4hwkvcp9qmcsip6d0kz0p8r9c3"))))
+    (build-system emacs-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'install 'change-directory
+                 (lambda _
+                   (chdir "etc"))))))
+    (home-page "https://github.com/vyzo/gervil")
+    (synopsis "Emacs major-mode for editing Gerbil code")
+    (description
+     "Gerbil mode provides font-lock, indentation, navigation, and REPL for
+Gerbil code within Emacs.")
+    (license (list license:lgpl2.1 license:asl2.0))))
+
 (define-public emacs-org-modern
   (package
    (name "emacs-org-modern")

base-commit: 774a6fb12c884766856c86c00adaa8f2a1d42508
-- 
2.39.2