all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#53290] [PATCH] gnu: Add emacs-fennel-mode.
@ 2022-01-15 22:00 Brandon Lucas
  2022-01-16  9:17 ` Nicolas Goaziou
  2022-01-16 10:50 ` [bug#53290] [PATCH v2] " Brandon Lucas
  0 siblings, 2 replies; 4+ messages in thread
From: Brandon Lucas @ 2022-01-15 22:00 UTC (permalink / raw)
  To: 53290; +Cc: Brandon Lucas

* gnu/packages/emacs-xyz.scm (emacs-fennel-mode): New variable.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c5cb07e16e..8175c48478 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -106,6 +106,7 @@
 ;;; Copyright © 2021 la snesne <lasnesne@lagunposprasihopre.org>
 ;;; Copyright © 2021 Brian Kubisiak <brian@kubisiak.com>
 ;;; Copyright © 2021, 2022 Taiju HIGASHI <higashi@taiju.info>
+;;; Copyright © 2022 Brandon Lucas <br@ndon.dk>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29754,3 +29755,25 @@ (define-public emacs-global-tags
 wraps GNU Global calls and integration to editor using this API with
 project.el and xref.el.")
       (license license:gpl3+))))
+
+(define-public emacs-fennel-mode
+  (let ((commit "54ed0792d0ac43a2d5db39741cf070c627368419")
+        (revision "0"))
+    (package
+      (name "emacs-fennel-mode")
+      (version (git-version "0.4.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://gitlab.com/technomancy/fennel-mode.git")
+               (commit commit)))
+         (sha256
+          (base32 "0dwas3ivhxdyw6njkcadc8c17cirq325cmby04qls8zkmrvlil1w"))))
+      (build-system emacs-build-system)
+      (home-page "https://gitlab.com/technomancy/fennel-mode")
+      (synopsis "Emacs major-mode for editing Fennel code")
+      (description
+       "Provides font-lock, indentation, navigation, and repl for Fennel code
+ within Emacs.")
+      (license license:gpl3+))))
--
2.34.0






^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#53290] [PATCH] gnu: Add emacs-fennel-mode.
  2022-01-15 22:00 [bug#53290] [PATCH] gnu: Add emacs-fennel-mode Brandon Lucas
@ 2022-01-16  9:17 ` Nicolas Goaziou
  2022-01-16 10:50 ` [bug#53290] [PATCH v2] " Brandon Lucas
  1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2022-01-16  9:17 UTC (permalink / raw)
  To: Brandon Lucas; +Cc: 53290

Hello,

Brandon Lucas <br@ndon.dk> writes:

> * gnu/packages/emacs-xyz.scm (emacs-fennel-mode): New variable.

Thank you for this. Some comments follow.

> +(define-public emacs-fennel-mode
> +  (let ((commit "54ed0792d0ac43a2d5db39741cf070c627368419")
> +        (revision "0"))
> +    (package
> +      (name "emacs-fennel-mode")
> +      (version (git-version "0.4.1" revision commit))

The commit hash you use matches the "0.4.1" version bump. Therefore you
can drop commit and revision binding, and use "0.4.1" in the version
field.

> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url "https://gitlab.com/technomancy/fennel-mode.git")

You can drop the ".git" suffix here. I think "./pre-inst-env guix lint
emacs-fennel-mode" should warn you about it.

> +               (commit commit)))

Since you dropped commit binding, this should be (commit version)

> +      (description
> +       "Provides font-lock, indentation, navigation, and repl for Fennel code
> + within Emacs.")

Descriptions are expected to be full sentences. I suggest:

  Fennel mode provides font-lock, indentation, navigation and REPL for
  Fennel code within Emacs.

Could you send an updated patch?

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#53290] [PATCH v2] gnu: Add emacs-fennel-mode.
  2022-01-15 22:00 [bug#53290] [PATCH] gnu: Add emacs-fennel-mode Brandon Lucas
  2022-01-16  9:17 ` Nicolas Goaziou
@ 2022-01-16 10:50 ` Brandon Lucas
  2022-01-16 22:37   ` bug#53290: " Nicolas Goaziou
  1 sibling, 1 reply; 4+ messages in thread
From: Brandon Lucas @ 2022-01-16 10:50 UTC (permalink / raw)
  To: 53290; +Cc: Brandon Lucas

* gnu/packages/emacs-xyz.scm (emacs-fennel-mode): New variable.
---

Thanks for the review. :) Here's a better commit.

 gnu/packages/emacs-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c5cb07e16e..27b5c14fc5 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -106,6 +106,7 @@
 ;;; Copyright © 2021 la snesne <lasnesne@lagunposprasihopre.org>
 ;;; Copyright © 2021 Brian Kubisiak <brian@kubisiak.com>
 ;;; Copyright © 2021, 2022 Taiju HIGASHI <higashi@taiju.info>
+;;; Copyright © 2022 Brandon Lucas <br@ndon.dk>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29754,3 +29755,23 @@ (define-public emacs-global-tags
 wraps GNU Global calls and integration to editor using this API with
 project.el and xref.el.")
       (license license:gpl3+))))
+
+(define-public emacs-fennel-mode
+  (package
+    (name "emacs-fennel-mode")
+    (version "0.4.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.com/technomancy/fennel-mode")
+             (commit version)))
+       (sha256
+        (base32 "0dwas3ivhxdyw6njkcadc8c17cirq325cmby04qls8zkmrvlil1w"))))
+    (build-system emacs-build-system)
+    (home-page "https://gitlab.com/technomancy/fennel-mode")
+    (synopsis "Emacs major-mode for editing Fennel code")
+    (description
+     "Fennel mode provides font-lock, indentation, navigation, and REPL for
+ Fennel code within Emacs.")
+    (license license:gpl3+)))
--
2.34.0






^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#53290: [PATCH v2] gnu: Add emacs-fennel-mode.
  2022-01-16 10:50 ` [bug#53290] [PATCH v2] " Brandon Lucas
@ 2022-01-16 22:37   ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2022-01-16 22:37 UTC (permalink / raw)
  To: Brandon Lucas; +Cc: 53290-done

Hello,

Brandon Lucas <br@ndon.dk> writes:

> * gnu/packages/emacs-xyz.scm (emacs-fennel-mode): New variable.

Applied, thank you!

As a side note, it is usually a bad idea to add a new package at the end
of a file, because this location is likely to introduce merge conflicts.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-16 22:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-15 22:00 [bug#53290] [PATCH] gnu: Add emacs-fennel-mode Brandon Lucas
2022-01-16  9:17 ` Nicolas Goaziou
2022-01-16 10:50 ` [bug#53290] [PATCH v2] " Brandon Lucas
2022-01-16 22:37   ` bug#53290: " Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.