spacemacs/layers/+tools/finance
Eivind Fonn 08561d8631 core: implement :depends for package declarations
This replaces the older pattern
:toggle (configuration-layer/package-usedp ..)

This implementation ensures that :disabled-for honors dependent packages, i.e.
if package a depends on package b, which is owned by layer c, and layer c is
disabled for layer d, then neither package a nor b will be configured for layer
d. Previously, this was only true for package a, but not b.

This commit also fixes:

- configuration-layer/describe-package now shows which post-init and pre-init
  functions are disabled, if any
- Does not recreate all layer objects unconditionally when calling
  configuration-layer/discover-layers. Previously, this led to all layers being
  recreated after e.g. `SPC h SPC`, without any of the dotfile information.
  Since this information is now necessary for
  configuration-layer/describe-package, it’s important that we don’t clear the
  indexed layers when invoking this function.
2017-06-22 11:53:05 +02:00
..
img
packages.el core: implement :depends for package declarations 2017-06-22 11:53:05 +02:00
README.org update docs to the new toc-org format 2017-05-22 18:35:37 +03:00

Finance layer

Description

This layer adds finance related packages:

/TakeV/spacemacs/media/commit/d89f2dcf822cbaa7d0e06c0d1688f005b3588a6b/layers/+tools/finance/img/ledger.png

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. This layer adds support for ledger, which must be installed separately.

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 Binding Description
SPC m a add a transaction
SPC m b edit a post amount with Emacs Calculator mode
SPC m c toggle 'cleared' flag on transaction or post
SPC m C sort and align the entire buffer
SPC m d delete current transaction
SPC m p display balance at point
SPC m q align a single transaction's posts
SPC m r reconcile an account
SPC m R display a report
SPC m t append an effective date to a post
SPC m y set the year for quicker entry
SPC m RET set the month for quicker entry

Ledger-Reconcile

Key Binding Description
SPC m , toggle the current transaction pending
SPC m a quickly add a transaction, without exiting the reconciliation buffer
SPC m t change the target amount for the selected account
SPC m q quit reconciliation
SPC m RET finalize the reconciliation, changing all pending transactions to cleared