Subject: Add emacs-adoc-mode
From: Jack Hill <[email-masked]>
To: [email-masked]
Date: Mon, 16 Jul 2018 13:34:01 -0400 (EDT)
List-Id: <debbugs-submit.debbugs.gnu.org>

Ahoy Guix,

Attached are to patches for adding adoc-mode for Emacs to Guix. adoc-mode 
needs markup-faces which is added in the first patch, and adoc-mode is 
added in the second. Both package definitions were created with the help 
of `guix import elpa`.

Best,
Jack

From c4e326a3551a98e13c4ed3160e9c24b8a5afe607 Mon Sep 17 00:00:00 2001
From: Jack Hill <[email-masked]>
Date: Mon, 16 Jul 2018 13:22:28 -0400
Subject: [PATCH 1/2] gnu: Add emacs-markup-faces

* gnu/packages/emacs.scm (emacs-markup-faces): New variable.
---
 gnu/packages/emacs.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 64064ec51..ea0bd953f 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -11463,3 +11463,30 @@ can do different things depending on the context.  In this package, it means
 that, if the cursor is in a currently hidden folded construction, we want to
 show it; if it's not, we want to hide whatever fold the cursor is in.")
       (license license:gpl2+))))
+
+(define-public emacs-markup-faces
+  (package
+    (name "emacs-markup-faces")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://stable.melpa.org/packages/markup-faces-"
+             version
+             ".el"))
+       (sha256
+        (base32
+         "124dxbaa25fwxnpwsygpz7pw6da6dnnw7y2lic3jf8rgz7lw4v32"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/sensorflo/markup-faces")
+    (synopsis
+     "Collection of Emacs faces for markup language modes")
+    (description
+     "Like font-lock-faces, but tailored for markup languages instead programming
+languages.  The sub group markup-faces-text is also intended for 'text viewing
+modes' such as info or (wo)man.  This gives a common look and feel, or let's
+say theme, across different markup language modes and 'text viewing modes'
+respectively.")
+    (license license:gpl3+)))
+
-- 
2.11.0

From c980b2a822622bd69274549a4e82af4d56417fea Mon Sep 17 00:00:00 2001
From: Jack Hill <[email-masked]>
Date: Mon, 16 Jul 2018 13:24:05 -0400
Subject: [PATCH 2/2] gnu: Add emacs-adoc-mode

* gnu/packages/emacs.scm (emacs-adoc-mode): New variable.
---
 gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index ea0bd953f..be193b97b 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -11490,3 +11490,27 @@ say theme, across different markup language modes and 'text viewing modes'
 respectively.")
     (license license:gpl3+)))
 
+(define-public emacs-adoc-mode
+  (package
+    (name "emacs-adoc-mode")
+    (version "0.6.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://stable.melpa.org/packages/adoc-mode-"
+             version
+             ".el"))
+       (sha256
+        (base32
+         "1c6hrgxxsnl2c19rgjykpm7r4xg9lp6bmk5z6bi7g8pqlrgwffcy"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-markup-faces" ,emacs-markup-faces)))
+    (home-page "https://github.com/sensorflo/adoc-mode/wiki")
+    (synopsis
+     "AsciiDoc mode for Emacs")
+    (description
+     "Emacs major mode for editing AsciiDoc files.  It focuses on highlighting
+the document to improve readability.")
+    (license license:gpl2+)))
-- 
2.11.0