Subject: [PATCH] gnu: Add emacs-org-edit-latex.

From: Oleg Pykhalov <[email-masked]>
Date: Mon, 26 Jun 2017 13:52:52 +0300

---
 gnu/packages/emacs.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index a98278875..1261979be 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -4997,3 +4997,33 @@ enter C-x and wait for the default of 1 second, the minibuffer will expand
 with all of the available key bindings that follow C-x (or as many as space
 allows given your settings).")
     (license license:gpl3+)))
+
+(define-public emacs-org-edit-latex
+  (let ((commit "323d0b39d0284cef730b706dce7c0e58ed35530f")
+        (revision "1"))
+    (package
+      (name "emacs-org-edit-latex")
+      (version (string-append "0.0.1-" revision "."
+                              (string-take commit 7)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/et2010/org-edit-latex.git")
+                      (commit commit)))
+                (file-name (string-append name "-" version "-checkout"))
+                (sha256
+                 (base32
+                  "0zcllyhx9n9vcr5w87h0hfz25v52lvh5fi717cb7mf3jh89zh842"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("emacs-auctex" ,emacs-auctex)
+         ;; The version of org in Emacs 25.2 is not sufficient,
+         ;; because requires org-latex-make-preamble function.
+         ("emacs-org" ,emacs-org)))
+      (home-page "https://github.com/et2010/org-edit-latex")
+      (synopsis
+       "Edit a latex fragment/environment just like editing a src block")
+      (description
+       "@code{emacs-org-edit-latex} is an extension for org-mode.  It let you
+edit a latex fragment/environment just like editing a src block.")
+      (license license:gpl3+))))
-- 
2.13.1