[bug#37622] gnu: Add emacs-extempore-mode.
diff mbox series

Message ID 20191004142235.11979-1-goodoldpaul@autistici.org
State New
Headers show
Series
  • [bug#37622] gnu: Add emacs-extempore-mode.
Related show

Commit Message

Giacomo Leidi Oct. 4, 2019, 2:22 p.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-extempore-mode): New variable.
---
 gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Comments

Foxmean via Guix-patches via Oct. 4, 2019, 3:05 p.m. UTC | #1
Giacomo,

Thank you!

Giacomo Leidi 写道:
> * gnu/packages/emacs-xyz.scm (emacs-extempore-mode): New 
> variable.
> ---
>  gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm 
> b/gnu/packages/emacs-xyz.scm
> index 44fe73c3ef..69c3e9dd87 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -18754,3 +18754,30 @@ Emacs that integrate with major modes 
> like Org-mode.")
>       "Elixir-Mode Provides font-locking, indentation and 
>       navigation support
>   for the Elixir programming language.")
>      (license license:gpl3+)))
> +
> +(define-public emacs-extempore-mode
> +  (let ((version "20190917")            ; no proper tag, use 
> date of commit

We can't do this, since upstream could decide to release 0.1 
tomorrow and Guix would never consider it an upgrade: the number 
20190917 is larger than almost anything.

Hence we must use ‘0.0.0’ in such situations.

> +      (home-page
> +       "https://github.com/extemporelang/extempore-emacs-mode")
> +      (synopsis
> +       "Emacs major mode for Extempore source files")

Both of these can be single lines.

> +       "A major mode for editing Extempore code.  It can create 
> an

Descriptions should start with a full sentence.

I've made these changes and pushed commit 
0c3cf628299458dbbbd783adca5b1d277ead0fc8.

Kind regards,

T G-R

Patch
diff mbox series

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 44fe73c3ef..69c3e9dd87 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -18754,3 +18754,30 @@  Emacs that integrate with major modes like Org-mode.")
      "Elixir-Mode Provides font-locking, indentation and navigation support
  for the Elixir programming language.")
     (license license:gpl3+)))
+
+(define-public emacs-extempore-mode
+  (let ((version "20190917")            ; no proper tag, use date of commit
+        (commit "848ad0084f27b92d1cf98dabffbad29f959a642d")
+        (revision "1"))
+    (package
+      (name "emacs-extempore-mode")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/extemporelang/extempore-emacs-mode.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "00wr025php7nl33x541s9rjm99hj0jbdcmnw9ljx5hqpm04aqm7c"))))
+      (build-system emacs-build-system)
+      (home-page
+       "https://github.com/extemporelang/extempore-emacs-mode")
+      (synopsis
+       "Emacs major mode for Extempore source files")
+      (description
+       "A major mode for editing Extempore code.  It can create an
+Extempore REPL, connect the current @code{extempore-mode} buffer
+to a running Extempore process and more.")
+      (license license:bsd-2))))