Subject: [PATCH] gnu: Add emacs-org-fragtog.

From: André Alexandre Gomes <[email-masked]>
Date: Sun, 27 Dec 2020 15:37:24 +0300

Hi Guix!

>From 59b2de6252ae54944050246dd9041b3852024e7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Alexandre=20Gomes?= <[email-masked]>
Date: Sun, 27 Dec 2020 15:03:50 +0300
Subject: [PATCH] gnu: Add emacs-org-fragtog.

gnu/packages/emacs-xyz.scm (emacs-org-fragtog): New variable.
---
 gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0822bfdd29..4d78067f13 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -26100,3 +26100,29 @@ to pastebin-like services.  It supports more than one service and will
 failover if one service fails.  More services can easily be added over time
 and prefered services can easily be configured.")
     (license license:gpl3+)))
+
+(define-public emacs-org-fragtog
+  (package
+    (name "emacs-org-fragtog")
+    (version "0.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/io12/org-fragtog.git")
+             (commit version)))
+       (file-name
+        (git-file-name name version))
+       (sha256
+        (base32 "1rzi67lb3mxqg3x6d8zx6rxncg7lw14agqwbh7zvgc2iins59j0f"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-org" ,emacs-org)))
+    (home-page "https://github.com/io12/org-fragtog")
+    (synopsis "Toggle org-mode latex fragment previews at cursor")
+    (description
+     "Org mode supports inline image previews of latex fragments.  These
+can be toggled with C-c C-x C-l.  This package automates this, so
+fragment previews are disabled for editing when your cursor steps onto
+them, and re-enabled when the cursor leaves.")
+    (license license:gpl3+)))
-- 
2.29.2

--
André Alexandre Gomes
"Free Thought, Free World"