2015-06-10 16:44:30 +00:00
|
|
|
#+TITLE: Finance contribution layer for Spacemacs
|
2015-11-08 18:04:44 +00:00
|
|
|
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../css/readtheorg.css" />
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2015-10-30 11:20:58 +00:00
|
|
|
* Table of Contents :TOC_4_org:noexport:
|
|
|
|
- [[Description][Description]]
|
|
|
|
- [[Install][Install]]
|
|
|
|
- [[Layer][Layer]]
|
|
|
|
- [[Configuration][Configuration]]
|
|
|
|
- [[Ledger][Ledger]]
|
|
|
|
- [[Key bindings][Key bindings]]
|
|
|
|
- [[Ledger][Ledger]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Description
|
|
|
|
|
|
|
|
This layer adds finance related packages:
|
|
|
|
- [[https://github.com/ledger/ledger][ledger]] support via [[https://github.com/ledger/ledger/tree/next/lisp][ledger-mode]]
|
|
|
|
|
|
|
|
[[file:img/ledger.png]]
|
|
|
|
|
|
|
|
* Install
|
|
|
|
|
2015-06-15 03:35:47 +00:00
|
|
|
** Layer
|
|
|
|
|
2015-06-10 16:44:30 +00:00
|
|
|
To use this contribution add it to your =~/.spacemacs=
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(setq-default dotspacemacs-configuration-layers '(finance))
|
|
|
|
#+END_SRC
|
|
|
|
|
2015-06-15 03:35:47 +00:00
|
|
|
* 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
|
2015-09-28 06:05:18 +00:00
|
|
|
your =dotspacemacs/user-config=. The default value, set in the layer, is =62=.
|
2015-06-15 03:35:47 +00:00
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
2015-09-28 06:05:18 +00:00
|
|
|
(defun dotspacemacs/user-config ()
|
2015-06-15 03:35:47 +00:00
|
|
|
(setq ledger-post-amount-alignment-column 68))
|
|
|
|
#+END_SRC
|
|
|
|
|
2015-06-10 16:44:30 +00:00
|
|
|
* 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 |
|