From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:37836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBJDs-0008Bj-P8 for guix-patches@gnu.org; Tue, 02 Apr 2019 09:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBJDr-0007OO-Gq for guix-patches@gnu.org; Tue, 02 Apr 2019 09:13:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55073) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBJDq-0007LK-MB for guix-patches@gnu.org; Tue, 02 Apr 2019 09:13:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBJDp-000063-TI for guix-patches@gnu.org; Tue, 02 Apr 2019 09:13:02 -0400 Subject: [bug#35081] [PATCH] gnu: Add emacs-protobuf-mode. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:37678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBJDU-0007q7-62 for guix-patches@gnu.org; Tue, 02 Apr 2019 09:12:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBJDT-0006KU-2A for guix-patches@gnu.org; Tue, 02 Apr 2019 09:12:40 -0400 Received: from zancanaro.com.au ([45.76.117.151]:58406) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBJDS-00069O-Du for guix-patches@gnu.org; Tue, 02 Apr 2019 09:12:38 -0400 Received: from jolteon (210-1-202-160-cpe.spintel.net.au [210.1.202.160]) by zancanaro.com.au (Postfix) with ESMTPSA id 1877426464 for ; Tue, 2 Apr 2019 13:12:33 +0000 (UTC) From: Carlo Zancanaro Date: Wed, 03 Apr 2019 00:12:32 +1100 Message-ID: <875zrw360v.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: 35081@debbugs.gnu.org --=-=-= Content-Type: text/plain; format=flowed Attached is a patch to add emacs-protobuf-mode, a major mode for editing Protocol Buffer source files. I opted to add it in protobuf.scm instead of emacs-xyz.scm because it comes bundled with the protobuf source, and thus can share a source field. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-gnu-Add-emacs-protobuf-mode.patch >From de6067629a17c5884cc9e369a9ce0d4eafdd9f6a Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Fri, 28 Dec 2018 18:46:21 +1100 Subject: [PATCH] gnu: Add emacs-protobuf-mode. To: guix-patches@gnu.org * gnu/packages/protobuf.scm (emacs-protobuf-mode): New variable. --- gnu/packages/protobuf.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm index 73169216b4..3299299705 100644 --- a/gnu/packages/protobuf.scm +++ b/gnu/packages/protobuf.scm @@ -27,6 +27,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix build-system emacs) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages compression) #:use-module (gnu packages gcc) @@ -208,4 +209,21 @@ mechanism for serializing structured data.") (define-public python2-protobuf (package-with-python2 python-protobuf)) + +(define-public emacs-protobuf-mode + (package + (name "emacs-protobuf-mode") + (version (package-version protobuf)) + (source (package-source protobuf)) + (build-system emacs-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'set-emacs-load-path 'change-working-directory + (lambda _ (chdir "editors") #t))))) + (home-page "https://github.com/google/protobuf") + (synopsis "Protocol buffers major mode for Emacs") + (description + "This package provides an Emacs major mode for editing Protocol Buffer +source files.") + (license license:bsd-3))) -- 2.21.0 --=-=-=--