diff mbox

gnu: Add emacs-d-mode.

Message ID 87shrsh8yw.fsf@gnu.org
State New
Headers show

Commit Message

Roel Janssen Oct. 19, 2016, 11:30 a.m. UTC
Dear Guix,

Here's a patch to add a major mode for the D programming language.

Kind regards,
Roel Janssen

>From 9a83259640de620241bd36254cbae5ec0500a399 Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
Date: Wed, 19 Oct 2016 13:22:57 +0200
Subject: [PATCH] gnu: Add emacs-d-mode.

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

Comments

Ludovic Courtès Oct. 20, 2016, 7:45 p.m. UTC | #1
Roel Janssen <roel@gnu.org> skribis:

>>From 9a83259640de620241bd36254cbae5ec0500a399 Mon Sep 17 00:00:00 2001
> From: Roel Janssen <roel@gnu.org>
> Date: Wed, 19 Oct 2016 13:22:57 +0200
> Subject: [PATCH] gnu: Add emacs-d-mode.
>
> * gnu/packages/emacs.scm (emacs-d-mode): New variable.

Go for it, thanks!

Ludo’.
diff mbox

Patch

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 6e9c181..bee4046 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1197,6 +1197,28 @@  and stored in memory.")
     (description "This package provides a modern list API library for Emacs.")
     (license license:gpl3+)))
 
+(define-public emacs-d-mode
+  (package
+    (name "emacs-d-mode")
+    (version "2.0.8")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/"
+                    "archive/" version ".tar.gz"))
+              (sha256
+               (base32
+                "0knpgi55jm09282aqf8pv55zillpnpzf9f4sgm6gwsmvxf17xaw0"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-undercover" ,emacs-undercover)))
+    (home-page "https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode")
+    (synopsis "Emacs major mode for editing D code")
+    (description "This package provides an Emacs major mode for highlighting
+code written in the D programming language.  This mode is currently known to
+work with Emacs 24 and 25.")
+    (license license:gpl2+)))
+
 (define-public emacs-undo-tree
   (package
     (name "emacs-undo-tree")