unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Griffin <a@ajgrf.com>
To: Leo Famulari <leo@famulari.name>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 3/3] gnu: Add emacs-ledger-mode.
Date: Sat, 07 May 2016 21:10:56 -0500	[thread overview]
Message-ID: <1462673456.1215358.601202657.4E791020@webmail.messagingengine.com> (raw)
In-Reply-To: <20160507222335.GB16592@jasmine>

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

On Sat, May 7, 2016, at 05:23 PM, Leo Famulari wrote:
> Somebody else will have to test that this works; I don't know enough
> about Emacs to try it.

Well it seems to work on my machine, but I guess the whole point of code
review is that somebody checks it other than me.

> Would it be appropriate to use (package-version ledger) and
> (package-source ledger), as in the package definition of tocc?
> 
> That way, updating ledger would automatically update emacs-ledger-mode
> as well.

Good idea, done.
-- 
Alex Griffin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0003-gnu-Add-emacs-ledger-mode.patch --]
[-- Type: text/x-patch; name="0003-gnu-Add-emacs-ledger-mode.patch", Size: 2116 bytes --]

From fe7cee618e43bfdba7e39d058676429235a17c56 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Sat, 7 May 2016 12:22:15 -0500
Subject: [PATCH 3/3] gnu: Add emacs-ledger-mode.

* gnu/packages/emacs.scm (emacs-ledger-mode): New variable.
---
 gnu/packages/emacs.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 11010b2..69a85ef 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2016 Nils Gillmann <niasterisk@grrlz.net>
 ;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
+;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -63,6 +64,7 @@
   #:use-module (gnu packages scheme)
   #:use-module (gnu packages xiph)
   #:use-module (gnu packages mp3)
+  #:use-module (gnu packages finance)
   #:use-module (guix utils)
   #:use-module (srfi srfi-1))
 
@@ -1559,3 +1561,26 @@ to recognize a name like \"RFC 1234\".  This package enhances ffap so
 that it correctly finds RFCs even when a space appears before the
 number.")
     (license license:gpl3+)))
+
+(define-public emacs-ledger-mode
+  (package
+    (name "emacs-ledger-mode")
+    (version (package-version ledger))
+    (source (package-source ledger))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'elisp-subdir
+           (lambda _
+             (begin (chdir "lisp")
+                    (delete-file "CMakeLists.txt"))
+             #t)))))
+    (home-page "http://ledger-cli.org/")
+    (synopsis "Emacs mode for working with \"ledger\" accounting data")
+    (description
+     "Ledger is a powerful, double-entry accounting system that is
+     accessed from the UNIX command-line.  This package contains an
+     Emacs mode for manipulating ledger's text-based file format,
+     running reports on it, reconciling its accounts, and more.")
+    (license license:gpl2+)))
-- 
2.7.4


  reply	other threads:[~2016-05-08  2:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-07 18:42 [PATCH 3/3] gnu: Add emacs-ledger-mode Alex Griffin
2016-05-07 22:23 ` Leo Famulari
2016-05-08  2:10   ` Alex Griffin [this message]
2016-05-08  7:46 ` Alex Kost
2016-05-09  3:33   ` Leo Famulari
2016-05-10 23:34     ` Alex Griffin

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=1462673456.1215358.601202657.4E791020@webmail.messagingengine.com \
    --to=a@ajgrf.com \
    --cc=guix-devel@gnu.org \
    --cc=leo@famulari.name \
    /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).