Subject: [PATCH] Add emacs-subed
From: Jai Vetrivelan <[email-masked]>
To: [email-masked]
Date: Wed, 02 Feb 2022 05:09:54 +0530
List-Id: <debbugs-submit.debbugs.gnu.org>

From cfea2a0826f2c1fef798d15db10e5a5883ecfd80 Mon Sep 17 00:00:00 2001
From: Jai Vetrivelan <[email-masked]>
Date: Tue, 1 Feb 2022 21:43:12 +0530
Subject: [PATCH] gnu: Add emacs-subed.

* gnu/packages/emacs-xyz.scm: (emacs-subed) new variable.
---
 gnu/packages/emacs-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 8ce245c54a..ae69df0eff 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -107,6 +107,7 @@
 ;;; Copyright © 2021 Brian Kubisiak <[email-masked]>
 ;;; Copyright © 2021, 2022 Taiju HIGASHI <[email-masked]>
 ;;; Copyright © 2022 Brandon Lucas <[email-masked]>
+;;; Copyright © 2022 Jai Vetrivelan <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5935,6 +5936,35 @@ (define-public emacs-sudo-edit
 user.")
     (license license:gpl3+)))
 
+(define-public emacs-subed
+  (let ((version "0.0.4") (revision "0")
+        (commit "f69c3e09f21403722dd5294b0b640a15201afbf5"))
+    (package
+      (name "emacs-subed")
+      (version (git-version version revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/sachac/subed")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0p510waqzr9kqa1nfi91rjdpiqqikhqxw9r1by9sxyf6wd890dg8"))))
+      (build-system emacs-build-system)
+      (arguments
+       `(#:phases (modify-phases %standard-phases
+                    (add-after 'unpack 'chdir-subed
+                      (lambda _
+                        (chdir "subed"))))))
+      (home-page "https://elpa.nongnu.org/nongnu/subed.html")
+      (synopsis "Major mode for editing subtitles")
+      (description
+       "@code{subed} is an Emacs major mode for editing subtitles while
+playing the corresponding video with mpv.  At the moment, the only supported
+formats are  SubRip (.srt), WebVTT (.vtt), and Advanced SubStation Alpha (.ass).")
+      (license license:gpl3+))))
+
 (define-public emacs-miniedit
   (package
     (name "emacs-miniedit")

base-commit: ce721bd2ce7b58c57402db393baa31b945b03b8e
-- 
2.34.0