From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:36337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBJ96-0003Yt-B6 for guix-patches@gnu.org; Tue, 02 Apr 2019 09:08:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBJ91-0008IW-Fh for guix-patches@gnu.org; Tue, 02 Apr 2019 09:08:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBJ91-0008Hq-9T for guix-patches@gnu.org; Tue, 02 Apr 2019 09:08:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBJ90-0008QH-Sj for guix-patches@gnu.org; Tue, 02 Apr 2019 09:08:02 -0400 Subject: [bug#35080] [PATCH] gnu: Add emacs-erlang. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:36023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBJ86-0002MS-UP for guix-patches@gnu.org; Tue, 02 Apr 2019 09:07:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBJ83-0006pi-BL for guix-patches@gnu.org; Tue, 02 Apr 2019 09:07:06 -0400 Received: from zancanaro.com.au ([45.76.117.151]:55310) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBJ82-0006iu-SO for guix-patches@gnu.org; Tue, 02 Apr 2019 09:07:03 -0400 Received: from jolteon (210-1-202-160-cpe.spintel.net.au [210.1.202.160]) by zancanaro.com.au (Postfix) with ESMTPSA id 714EE26464 for ; Tue, 2 Apr 2019 13:06:55 +0000 (UTC) From: Carlo Zancanaro Date: Wed, 03 Apr 2019 00:06:51 +1100 Message-ID: <877ecc36ac.fsf@zancanaro.id.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: 35080@debbugs.gnu.org --=-=-= Content-Type: text/plain; format=flowed Attached is a patch to add an Emacs major mode for Erlang files. I opted to put it in erlang.scm rather than emacs-xyz.scm because it comes bundled in the main Erlang source, and thus can share the source field. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-gnu-Add-emacs-erlang.patch >From 9406b1c2a6a12cec143ca19d8fd268c70156da18 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Thu, 27 Dec 2018 20:11:31 +1100 Subject: [PATCH] gnu: Add emacs-erlang. To: guix-patches@gnu.org * gnu/packages/erlang.scm (emacs-erlang): New variable. --- gnu/packages/erlang.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm index 9c38b53581..4fba7ee0c8 100644 --- a/gnu/packages/erlang.scm +++ b/gnu/packages/erlang.scm @@ -23,6 +23,7 @@ (define-module (gnu packages erlang) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system gnu) + #:use-module (guix build-system emacs) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) @@ -212,3 +213,21 @@ built-in support for concurrency, distribution and fault tolerance.") ;; have other licenses. See 'system/COPYRIGHT' in the source distribution. (license (list license:asl2.0 license:bsd-2 license:bsd-3 license:expat license:lgpl2.0+ license:tcl/tk license:zlib)))) + +(define-public emacs-erlang + (package + (name "emacs-erlang") + (version (package-version erlang)) + (source (package-source erlang)) + (build-system emacs-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'set-emacs-load-path 'change-working-directory + (lambda _ (chdir "lib/tools/emacs") #t))))) + (home-page "https://www.erlang.org/") + (synopsis "Erlang major mode for Emacs") + (description + "This package provides an Emacs major mode for editing Erlang source +files.") + (license license:asl2.0))) -- 2.21.0 --=-=-=--