Subject: [bug#48727] [PATCH] gnu: Add emacs-evil-paredit.

From: Xinglu Chen <[email-masked]>
Date: Sat, 29 May 2021 10:21:26 +0200

* gnu/packages/emacs-xyz.scm (emacs-evil-paredit): New variable.
---
 gnu/packages/emacs-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 5ddeb09230..4f4ebb7985 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -11030,6 +11030,35 @@ end of a line and increment or decrement it.")
 a popup window for previewing candidates.")
       (license license:gpl3+))))
 
+(define-public emacs-evil-paredit
+  (let ((commit "e058fbdcf9dbf7ad6cc77f0172d7517ef233d55f"))
+    (package
+      (name "emacs-evil-paredit")
+      (version "0.0.2")                 ; says 0.0.2 in evil-paredit.el
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/roman/evil-paredit")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "0b08y4spapl4g2292j3l4cr84gjlvm3rpma3gqld4yb1sxd7v78p"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("emacs-paredit" ,emacs-paredit)
+         ("emacs-evil" ,emacs-evil)))
+      (home-page "https://github.com/roman/evil-paredit")
+      (synopsis "Evil extension to integrate nicely with Paredit")
+      (description "This package helps you to not screw up your paredit setup
+when using evil-mode.
+
+In order to accomplish this whenever you try to use a modifier command like
+@kbd{d}, @kbd{c}, @kbd{y} to modify the paredit buffer, it will stop you to do
+so in the case you break the parity of parenthesis.")
+      (license license:expat))))
+
 (define-public emacs-evil-args
   (let ((commit "758ad5ae54ad34202064fec192c88151c08cb387")
         (revision "1"))

base-commit: cefa260fb42693b87545b1baab8cef9723827f80
-- 
2.31.1