guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: Add emacs-multi.


From: guix-commits
Subject: 02/03: gnu: Add emacs-multi.
Date: Fri, 7 Aug 2020 21:26:51 -0400 (EDT)

brettgilio pushed a commit to branch master
in repository guix.

commit 1218114e0d56c8f73da78bc04d0b5caf02c6b784
Author: Brett Gilio <brettg@gnu.org>
AuthorDate: Fri Aug 7 20:26:37 2020 -0500

    gnu: Add emacs-multi.
    
    * gnu/packages/emacs-xyz.scm (emacs-multi): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6dbe602..6e7a57d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -24141,6 +24141,31 @@ read-only, constant database that maps Emacs Lisp 
symbols to
 arbitrary Emacs Lisp objects.")
     (license license:gpl3+)))
 
+
+(define-public emacs-multi
+  (package
+    (name "emacs-multi")
+    (version "2.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/kurisuwhyte/emacs-multi";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "11zabs7qpdhri6n90ck7pgwcbz46d813nyl73h5m1i8jvz1wzx7v"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/kurisuwhyte/emacs-multi";)
+    (synopsis "Clojure-style multi-methods for Emacs Lisp")
+    (description "Provides Emacs Lisp with a form of polymorphism
+by way of predicate dispatching.  Methods consist of a dispatch
+function, and a series of branches.  The dispatch function is
+applied to the arguments, and the result value is checked against
+the expectations of each branch to define which one to invoke.")
+    (license license:expat)))
+
 (define-public emacs-highlight
   (let ((commit "9258a2b8362d737115cbd87618f947eadb140411")
         (revision "1"))



reply via email to

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