Subject: [PATCH] gnu: Add emacs-polymode-markdown.

From: Joseph LaFreniere <[email-masked]>
Date: Sat, 28 Nov 2020 18:38:23 -0600

Patch file is attached.

--
Joseph LaFreniere
>From b069e92328596de2ab2cbc02bb657a7166997d9e Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <[email-masked]>
Date: Sat, 28 Nov 2020 18:36:45 -0600
Subject: [PATCH] gnu: Add emacs-polymode-markdown.

* gnu/packages/emacs-xyz.scm (emacs-polymode-markdown): 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 91b1230489..4806f42199 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -13512,6 +13512,32 @@ literate programming tools for exporting, weaving and tangling.")
      "Edit YAML files for Ansible containing embedded Jinja2 templating.")
     (license license:gpl3+)))
 
+(define-public emacs-polymode-markdown
+  (package
+    (name "emacs-polymode-markdown")
+    (version "0.2.2")
+    (home-page "https://github.com/polymode/poly-markdown")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1q4qq0ql08hxkdrd2aal03560k612my7bvnfpfij3g432hn0p7v6"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-polymode" ,emacs-polymode)
+       ("emacs-markdown-mode" ,emacs-markdown-mode)))
+    (properties '((upstream-name . "poly-markdown")))
+    (synopsis "Polymode for @code{markdown-mode}")
+    (description
+     "Edit source code blocks embedded in markdown files using the major mode
+corresponding to each block.")
+    (license license:gpl3+)))
+
 (define-public emacs-powershell
   ;; Tagged branch 0.1 is outdated (2015).
   (let ((revision "0")
-- 
2.29.2