GNU bug report logs - #28381
[PATCH] gnu: emacs-skewer-mode: Install html and js files.

Previous Next

Package: guix-patches;

Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>

Date: Thu, 7 Sep 2017 12:08:01 UTC

Severity: normal

Tags: patch

Done: Alex Kost <alezost <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: emacs-skewer-mode: Install html and js files.
Date: Thu, 07 Sep 2017 15:06:20 +0300
[0001-gnu-emacs-skewer-mode-Install-html-and-js-files.patch (text/x-patch, inline)]
From 1cc40f4a0088cbed1ae9f6ca0efdf89a52bf01a5 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust <at> gmail.com>
Date: Thu, 7 Sep 2017 15:03:31 +0300
Subject: [PATCH] gnu: emacs-skewer-mode: Install html and js files.

* gnu/packages/emacs.scm (emacs-skewer-mode): Install html and js files.
---
 gnu/packages/emacs.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 9c0f9bc89..a7ec0b146 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1967,6 +1967,21 @@ serve files and directory listings.")
     (propagated-inputs
      `(("emacs-simple-httpd" ,emacs-simple-httpd)
        ("emacs-js2-mode" ,emacs-js2-mode)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-html-js
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((skewer-mode (string-append (assoc-ref outputs "out")
+                                               "/share/emacs/site-lisp/guix.d"
+                                               "/skewer-mode-"
+                                               ,version)))
+               (for-each (lambda (file)
+                           (install-file file skewer-mode))
+                         '("example.html"
+                           "skewer-everything.user.js"
+                           "skewer.js")))
+             #t)))))
     (home-page "https://github.com/skeeto/skewer-mode")
     (synopsis "Live web development in Emacs")
     (description
-- 
2.14.1





This bug report was last modified 7 years and 305 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.