From patchwork Thu Apr 7 16:54:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Collin J. Doering" X-Patchwork-Id: 38384 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1B38E27BBEA; Thu, 7 Apr 2022 17:59:48 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D3C9D27BBE9 for ; Thu, 7 Apr 2022 17:59:47 +0100 (BST) Received: from localhost ([::1]:43502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncVU2-0005bS-V7 for patchwork@mira.cbaines.net; Thu, 07 Apr 2022 12:59:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncVRO-0002JE-NB for guix-patches@gnu.org; Thu, 07 Apr 2022 12:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39361) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncVRO-00026V-Do for guix-patches@gnu.org; Thu, 07 Apr 2022 12:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncVRO-00057z-BL for guix-patches@gnu.org; Thu, 07 Apr 2022 12:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54771] [PATCH] gnu: Add emacs-hledger-mode Resent-From: "Collin J. Doering" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Apr 2022 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54771 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54771@debbugs.gnu.org Cc: "Collin J. Doering" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164935057419646 (code B ref -1); Thu, 07 Apr 2022 16:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Apr 2022 16:56:14 +0000 Received: from localhost ([127.0.0.1]:33258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncVQb-00056o-Ma for submit@debbugs.gnu.org; Thu, 07 Apr 2022 12:56:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:52548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncVQa-00056h-Qc for submit@debbugs.gnu.org; Thu, 07 Apr 2022 12:56:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncVQa-00011X-IS for guix-patches@gnu.org; Thu, 07 Apr 2022 12:56:12 -0400 Received: from out1.migadu.com ([2001:41d0:2:863f::]:51147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncVQY-0001q8-2H for guix-patches@gnu.org; Thu, 07 Apr 2022 12:56:12 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rekahsoft.ca; s=key1; t=1649350566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ECi4Sn8wD1pahVfPfsBbNvyb3kZq+wfkCP6L4cX9crw=; b=FC4qIRhIkR9GjZKuAamFFNj8o4vcPdvScpFoUvFcf+PjGrUEFwDQsesxYdMU4BtgUPc7ZY 5IH756/m8deHu8HbhIdy9hHLdZY/xms+DeqMGqVTY+7kiONQlZUT4IcgZUAZZEYp+0CsBa UEDogAWL473DdWsW+gAEDYIV4QzeJa0= Date: Thu, 7 Apr 2022 12:54:43 -0400 Message-Id: <20220407165442.23653-1-collin@rekahsoft.ca> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rekahsoft.ca Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=collin@rekahsoft.ca; helo=out1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "Collin J. Doering" X-ACL-Warn: , "Collin J. Doering via Guix-patches" X-Patchwork-Original-From: "Collin J. Doering via Guix-patches" via From: "Collin J. Doering" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/finance.scm (emacs-hledger-mode): New variable --- gnu/packages/finance.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 9f2d055048..d6cd2981a6 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -73,6 +73,7 @@ (define-module (gnu packages finance) #:use-module (gnu packages documentation) #:use-module (gnu packages dns) #:use-module (gnu packages emacs) + #:use-module (gnu packages emacs-xyz) #:use-module (gnu packages dbm) #:use-module (gnu packages gettext) #:use-module (gnu packages gnome) @@ -455,6 +456,37 @@ (define-public emacs-ledger-mode This package provides the Emacs mode.") (license license:gpl2+))) +(define-public emacs-hledger-mode + (let ((commit "9ac07ff0adbce6a402c17e789b1750f9da0d22f4") + (revision "1")) + (package + (name "emacs-hledger-mode") + (version (git-version "20210706.1225" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/narendraj9/hledger-mode") + (commit commit))) + (sha256 + (base32 + "0x3dgws8nh7q8x7zzjwbm5k9n7gi7qqd3ww7y51fbx6p6ii3jpp4")))) + (build-system emacs-build-system) + (propagated-inputs `(("emacs-popup" ,emacs-popup) + ("emacs-async" ,emacs-async) + ("emacs-htmlize" ,emacs-htmlize))) + (arguments + '(#:include '("^[^/]+.el$") + #:exclude '())) + (home-page "https://github.com/narendraj9/hledger-mode") + (synopsis "Mode for writing journal entries for hledger") + (description + "A major mode for writing hledger journal files. It generates some +useful reports along with some financial ratios that can help you +keep a check on your financial health. This is an attempt to +organize personal finances for Emacs users. If you don not like this, +try @code{emacs-ledger-mode}.") + (license license:gpl3)))) + (define-public geierlein (package (name "geierlein")