unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#28381] [PATCH] gnu: emacs-skewer-mode: Install html and js files.
@ 2017-09-07 12:06 Oleg Pykhalov
  2017-09-09 20:16 ` Alex Kost
  0 siblings, 1 reply; 4+ messages in thread
From: Oleg Pykhalov @ 2017-09-07 12:06 UTC (permalink / raw)
  To: 28381

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [PATCH] gnu: emacs-skewer-mode: Install html and js files. --]
[-- Type: text/x-patch, Size: 1564 bytes --]

From 1cc40f4a0088cbed1ae9f6ca0efdf89a52bf01a5 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-19 16:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-07 12:06 [bug#28381] [PATCH] gnu: emacs-skewer-mode: Install html and js files Oleg Pykhalov
2017-09-09 20:16 ` Alex Kost
2017-09-17  9:15   ` Oleg Pykhalov
2017-09-19 16:48     ` bug#28381: " Alex Kost

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).