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

From: Juliana Sims <[email-masked]>
Date: Tue, 18 Apr 2023 13:05:32 -0400

Hi,

> Maybe the whole package should inherit from `gerbil' package so version,
> source, home-page and license are already set in the parent. WDYT?

I think that's a great idea! This version of the patch does that and also
sets this package version to 1.0.

Thanks,
Juli

---------BEGIN-PATCH---------

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6618aac332..9699fa6f32 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.
 ;;;
@@ -36015,6 +36016,22 @@ (define-public emacs-fennel-mode
 Fennel code within Emacs.")
       (license license:gpl3+))))
 
+(define-public emacs-gerbil-mode
+  (package
+    (inherit gerbil)
+    (name "emacs-gerbil-mode")
+    (version "1.0")
+    (build-system emacs-build-system)
+    (arguments
+     (list #:phases #~(modify-phases %standard-phases
+                        (add-before 'install 'change-directory
+                          (lambda _
+                            (chdir "etc"))))))
+    (synopsis "Emacs major-mode for editing Gerbil code")
+    (description
+     "Gerbil mode provides font-lock, indentation, navigation, and REPL for
+Gerbil code within Emacs.")))
+
 (define-public emacs-org-modern
   (package
    (name "emacs-org-modern")

base-commit: 286cdf0bc55a29d5a63f7191edde7ea4dbd8cf2a
-- 
2.39.2