Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 3.26 KB

README.org

File metadata and controls

74 lines (61 loc) · 3.26 KB

Finance layer

img/ledger.png

Table of Contents

Description

This layer integrates a full fledged accounting system into Spacemacs.

Features:

  • Support for maintaining a double-entry accounting system run by text files via ledger-mode.
  • Display of finance reports directly within emacs.
  • Integration of emacs calculator mode for editing post amounts.
  • Support for easy account reconciliation via Ledger-Reconcile.
  • Extended support for evil style editing with evil-ledger.

Install

Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add finance to the existing dotspacemacs-configuration-layers list in this file.

For this layer to work properly you also need to install the native package ledger.

Configuration

Ledger

You can set what column transaction posts are aligned to on the right by setting the variable ledger-post-amount-alignment-column in your dotspacemacs/user-config. The default value, set in the layer, is 62.

(defun dotspacemacs/user-config ()
  (setq ledger-post-amount-alignment-column 68))

Key bindings

Ledger

Key bindingDescription
SPC m aadd a transaction
SPC m bedit a post amount with Emacs Calculator mode
SPC m ctoggle ’cleared’ flag on transaction or post
SPC m Csort and align the entire buffer
SPC m ddelete current transaction
SPC m pdisplay balance at point
SPC m qalign a single transaction’s posts
SPC m rreconcile an account
SPC m Rdisplay a report
SPC m tappend an effective date to a post
g jgo to the next transaction
g kgo to the previous transaction

evil-ledger additionally adds a transaction text object, bound to x, so you can for example use dix or vax to delete or mark the transaction at point.

Ledger-Reconcile

Key bindingDescription
SPC m ,toggle the current transaction pending
SPC m aquickly add a transaction, without exiting the reconciliation buffer
SPC m tchange the target amount for the selected account
SPC m qquit reconciliation
SPC m RETfinalize the reconciliation, changing all pending transactions to cleared