summary refs log tree commit diff
diff options
context:
space:
mode:
authorJai Vetrivelan <jaivetrivelan@gmail.com>2022-02-02 05:09:54 +0530
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-02-06 22:11:51 +0100
commit7a63137dab453e961e66ffa27d21526d64c5fa5e (patch)
tree7a17bbdac5a9df467cc68c8ddab2f3c04f4d6dd7
parent45fa5fec49315684197e6488951cc6bdc954e041 (diff)
downloadguix-7a63137dab453e961e66ffa27d21526d64c5fa5e.tar.gz
gnu: Add emacs-subed.
* gnu/packages/emacs-xyz.scm (emacs-subed): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/emacs-xyz.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a8fbcc5dbd..c9c91cec32 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -107,6 +107,7 @@
 ;;; Copyright © 2021 Brian Kubisiak <brian@kubisiak.com>
 ;;; Copyright © 2021, 2022 Taiju HIGASHI <higashi@taiju.info>
 ;;; Copyright © 2022 Brandon Lucas <br@ndon.dk>
+;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5935,6 +5936,36 @@ Gnus, e.g., for applying patches received by email.")
 user.")
     (license license:gpl3+)))
 
+(define-public emacs-subed
+  ;; XXX: Upstream does not tag releases.  Commit below matches version bump.
+  (let ((commit "9a660ed88600e9aff741051c28a9e638cd5df5f5"))
+    (package
+      (name "emacs-subed")
+      (version "1.0.2")
+      (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
+                  "1biczfg8cl9sy02yx7nmf5ma7mdjsmi27v93x1gaw4zjwj8fmlkg"))))
+      (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 (@file{.srt}), WebVTT (@file{.vtt}), and Advanced
+SubStation Alpha (@file{.ass}).")
+      (license license:gpl3+))))
+
 (define-public emacs-miniedit
   (package
     (name "emacs-miniedit")