Subject: [bug#42435] [PATCH] gnu: Add emacs-shx.

From: Michael Rohleder <[email-masked]>
Date: Mon, 20 Jul 2020 03:20:46 +0200

From fbfcb7a8260245c26f2dd4c7b496b1294312e9b2 Mon Sep 17 00:00:00 2001
From: Michael Rohleder <[email-masked]>
Date: Mon, 20 Jul 2020 03:18:34 +0200
Subject: [PATCH] gnu: Add emacs-shx.

* gnu/packages/emacs-xyz.scm (emacs-shx): 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 3145faf3b4..d84b67cfdd 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -12382,6 +12382,31 @@ messaging service.")
 and shell-command prompts that are based on Bash completion.")
    (license license:gpl2+)))
 
+(define-public emacs-shx
+  (package
+    (name "emacs-shx")
+    (version "1.4.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/riscy/shx-for-emacs")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0p9b621rgy34r1hl9xfzxh4xpx9gpsr3n330ypfxhlr0s5754j73"))))
+    (build-system emacs-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (delete 'patch-el-files))))    ; that zsh string is in a docstring...
+    (home-page "https://github.com/riscy/shx-for-emacs")
+    (synopsis "Extends comint-mode in Emacs (e.g. M-x shell)")
+    (description "An Emacs shell-mode (and comint-mode) extension that enables displaying
+small plots and graphics and lets users write shell commands in Emacs Lisp.")
+    (license license:gpl3)))
+
 (define-public emacs-easy-kill
   (package
     (name "emacs-easy-kill")
-- 
2.27.0

-- 
The UNIX philosophy basically involves giving you enough rope to
hang yourself.  And then a couple of feet more, just to be sure.