Subject: [PATCH] gnu: Add emacs-php-mode.

From: Maxim Cournoyer <[email-masked]>
Date: Mon, 25 Dec 2017 21:38:06 -0500

Hello Guix,

This adds emacs-php-mode.

Maxim

From ec75991fe57d5fd9f5ae07fd1d41b63dc25d2a56 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <[email-masked]>
Date: Thu, 21 Dec 2017 11:12:53 -0500
Subject: [PATCH] gnu: Add emacs-php-mode.

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

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 77da8f2f2..40cf35064 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1492,6 +1492,25 @@ and stored in memory.")
     (home-page "https://github.com/politza/pdf-tools")
     (license license:gpl3+)))
 
+(define-public emacs-php-mode
+  (package
+    (name "emacs-php-mode")
+    (version "1.18.4")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ejmr/php-mode.git")
+                    (commit (string-append "v" version))))
+              (file-name (string-append name "-" version "-checkout"))
+              (sha256
+               (base32
+                "03yp07dxmxmhm8p5qcxsfdidhvnrpls20nr234cz6yamjl5zszh6"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/ejmr/php-mode")
+    (synopsis "PHP major mode for Emacs")
+    (description "A major mode for editing PHP source code with Emacs.")
+    (license license:gpl3+)))
+
 (define-public emacs-dash
   (package
     (name "emacs-dash")
-- 
2.14.1