Subject: [bug#54474] [PATCH 2/6] gnu: Add emacs-pulsar.

From: Jai Vetrivelan <[email-masked]>
Date: Sun, 20 Mar 2022 18:49:25 +0530

>From 746670e132c27ef502336bf37c2ed9dac2af891a Mon Sep 17 00:00:00 2001
From: Jai Vetrivelan <[email-masked]>
Date: Sun, 20 Mar 2022 17:22:58 +0530
Subject: [PATCH 2/6] gnu: Add emacs-pulsar.

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index f9df88040a..567dfc4eb8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -18682,6 +18682,40 @@ (define-public emacs-pulseaudio-control
        "This package allows controlling @code{pulseaudio} from Emacs.")
       (license license:gpl3+))))
 
+(define-public emacs-pulsar
+  (package
+   (name "emacs-pulsar")
+   (version "0.2.0")
+   (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                  (url "https://gitlab.com/protesilaos/pulsar.git/")
+                  (commit version)))
+            (file-name (git-file-name name version))
+            (sha256
+             (base32
+              "1wfn15xqm7rsv963wvzbcrhnwr0xfv8fvcbzm7y6zjx6yfz4zmn0"))))
+      (native-inputs (list texinfo))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'makeinfo
+           (lambda* (#:key outputs #:allow-other-keys)
+             (invoke "emacs"
+                     "--batch"
+                     "--eval=(require 'ox-texinfo)"
+                     "--eval=(find-file \"README.org\")"
+                     "--eval=(org-texinfo-export-to-info)")
+             (install-file "pulsar.info"
+                           (string-append (assoc-ref outputs "out")
+                                          "/share/info")))))))
+   (home-page "https://protesilaos.com/emacs/pulsar")
+   (synopsis "Pulse highlight line on demand or after running select functions")
+   (description "This package temporarily highlights the current line after a
+given function is invoked.")
+   (license license:gpl3+))) ; GFDLv1.3+ for the manual
+
 (define-public emacs-datetime
   (package
     (name "emacs-datetime")
-- 
2.34.0