unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Carlo Zancanaro <carlo@zancanaro.id.au>
To: 35081@debbugs.gnu.org
Subject: [bug#35081] [PATCH] gnu: Add emacs-protobuf-mode.
Date: Wed, 03 Apr 2019 00:12:32 +1100	[thread overview]
Message-ID: <875zrw360v.fsf@zancanaro.id.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacs-protobuf-mode.patch --]
[-- Type: text/x-diff, Size: 1670 bytes --]

From de6067629a17c5884cc9e369a9ce0d4eafdd9f6a Mon Sep 17 00:00:00 2001
From: Carlo Zancanaro <carlo@zancanaro.id.au>
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


             reply	other threads:[~2019-04-02 13:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-02 13:12 Carlo Zancanaro [this message]
2019-04-07 20:25 ` bug#35081: [PATCH] gnu: Add emacs-protobuf-mode Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zrw360v.fsf@zancanaro.id.au \
    --to=carlo@zancanaro.id.au \
    --cc=35081@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).