all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 3/3] gnu: Add emacs-ledger-mode.
@ 2016-05-07 18:42 Alex Griffin
  2016-05-07 22:23 ` Leo Famulari
  2016-05-08  7:46 ` Alex Kost
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Griffin @ 2016-05-07 18:42 UTC (permalink / raw)
  To: guix-devel

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

This is the Emacs mode for manipulating ledger files. Technically it
depends on ledger but it would have need to be a propagated input, so I
didn't include that. Maybe I should have? I don't know.

Thanks in advance for your feedback,
-- 
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: 2222 bytes --]

From 639402e17e19f21373d935d4bfe0f506c53f77be 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 | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 11010b2..3d9ac06 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.
 ;;;
@@ -1559,3 +1560,33 @@ 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 "3.1.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/ledger/ledger/archive/v" version
+                                  ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "12jlv3gsjhrja25q9hrwh73cdacd2l3c2yyn8qnijav9mdhnbw4h"))))
+    (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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-10 23:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-05-08  7:46 ` Alex Kost
2016-05-09  3:33   ` Leo Famulari
2016-05-10 23:34     ` Alex Griffin

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.