From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpvbL-00059C-1t for guix-patches@gnu.org; Thu, 07 Sep 2017 08:08:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpvbG-0007GL-BJ for guix-patches@gnu.org; Thu, 07 Sep 2017 08:08:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:45225) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpvbG-0007GH-7M for guix-patches@gnu.org; Thu, 07 Sep 2017 08:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dpvbF-0003zI-Tp for guix-patches@gnu.org; Thu, 07 Sep 2017 08:08:01 -0400 Subject: [bug#28381] [PATCH] gnu: emacs-skewer-mode: Install html and js files. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpva0-0004sa-JS for guix-patches@gnu.org; Thu, 07 Sep 2017 08:06:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpvZr-0006k0-87 for guix-patches@gnu.org; Thu, 07 Sep 2017 08:06:44 -0400 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:37358) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpvZq-0006iY-VW for guix-patches@gnu.org; Thu, 07 Sep 2017 08:06:35 -0400 Received: by mail-lf0-x22e.google.com with SMTP id 80so19248123lfy.4 for ; Thu, 07 Sep 2017 05:06:34 -0700 (PDT) Received: from magnolia ([178.71.199.83]) by smtp.gmail.com with ESMTPSA id g27sm392740lje.71.2017.09.07.05.06.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Sep 2017 05:06:32 -0700 (PDT) From: Oleg Pykhalov Date: Thu, 07 Sep 2017 15:06:20 +0300 Message-ID: <87wp5azpab.fsf@magnolia> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-emacs-skewer-mode-Install-html-and-js-files.patch Content-Description: [PATCH] gnu: emacs-skewer-mode: Install html and js files. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28381@debbugs.gnu.org >From 1cc40f4a0088cbed1ae9f6ca0efdf89a52bf01a5 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov 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