diff mbox series

[bug#57737,v5,1/6] gnu: Add emacs-eval-in-repl.

Message ID 20220923183437.18059-1-ngraves@ngraves.fr
State Accepted
Headers show
Series [bug#57737,v5,1/6] gnu: Add emacs-eval-in-repl. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Nicolas Graves Sept. 23, 2022, 6:34 p.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-eval-in-repl): New variable.
---
 gnu/packages/emacs-xyz.scm | 57 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 074d4d1c4c..47a834f91f 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -116,6 +116,7 @@ 
 ;;; Copyright © 2022 Haider Mirza <haider@haider.gq>
 ;;; Copyright © 2022 Jose G Perez Taveras <josegpt27@gmail.com>
 ;;; Copyright © 2022 Hilton Chain <hako@ultrarare.space>
+;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -27038,6 +27039,62 @@  (define-public emacs-info-plus
 nodes, and more.")
       (license license:gpl2+))))
 
+(define-public emacs-eval-in-repl
+  (package
+    (name "emacs-eval-in-repl")
+    (version "0.9.7")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/kaz-yos/eval-in-repl")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1mrssbl0wyc6iij8zk1y3h9bd3rv53nnrxsij7fn67l1m4z0clyn"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:include
+       (list "eval-in-repl\\.el" "eval-in-repl-test\\.el" "README\\.md")))
+    (propagated-inputs (list emacs-dash emacs-paredit emacs-ace-window))
+    (home-page "https://github.com/kaz-yos/eval-in-repl")
+    (synopsis "Consistent evaluation interface for various REPLs for emacs")
+    (description"\
+This package provides a consistent ESS-like evaluation interface for
+various REPLs.  Emacs Speaks Statistics (ESS) package has a nice function
+called @code{ess-eval-region-or-line-and-step}, which is assigned to
+C-RET.  This function sends a line or a selected region to the corresponding
+shell (R, Julia, Stata, etc) visibly.  It also start up a shell if there is
+none.
+
+This package along with REPL/shell specific packages implement similar work flow
+for various REPLs.
+
+This package alone is not functional.  It also requires the following packages
+depending on your needs :
+@itemize
+@item eval-in-repl-ielm       for Emacs Lisp
+@item eval-in-repl-cider      for Clojure
+@item eval-in-repl-slime      for Common Lisp
+@item eval-in-repl-sly        for Common Lisp
+@item eval-in-repl-geiser     for Racket/Scheme
+@item eval-in-repl-racket     for Racket
+@item eval-in-repl-scheme     for Scheme
+@item eval-in-repl-hy         for Hy
+@item eval-in-repl-python     for Python
+@item eval-in-repl-ruby       for Ruby
+@item eval-in-repl-sml        for Standard ML
+@item eval-in-repl-ocaml      for OCaml
+@item eval-in-repl-prolog     for Prolog
+@item eval-in-repl-javascript for Javascript
+@item eval-in-repl-shell      for Shell
+@item eval-in-repl-iex        for Elixir
+@item eval-in-repl-erlang     for Erlang
+@item eval-in-repl-elm        for Elm
+@item eval-in-repl-lua        for Lua
+@end itemize")
+    (license license:expat)))
+
 (define-public emacs-eval-sexp-fu-el
   (package
     (name "emacs-eval-sexp-fu-el")