Keep a Larder Inventory with Org-Mode and Ledger

Table of Contents

1 Introduction

In this piece I'll explain how I'm maintaining an inventory of what's in my larder (kitchen: fridge and pantry) by keeping a personal log using Org-modeTK with ledger-cliTK.

1.1 Editorial and License Information

This document was written by emsenn and is released as software under the terms included in the "License" supplement. Please direct comments to their public inbox or, if necessary, email.

2 Steps

2.1 [0/3] Set up your tech stack.

  • [ ] Install Emacs.
  • [ ] Install Org-mode.
  • [ ] Configure Org-babel.

2.2 Create a log.

2.2.1 Create a header

#+TITLE: Larder Log
#+OPTIONS: c:t d:t

2.2.2 Lay out the datetree

* 2019
** 2019-01 January
*** 2019-01-01 Tuesday

2.3 Buy groceries

**** Shopping
#+BEGIN_SRC ledger :noweb yes :tangle larder-demo.ledger
2019/01/01 * Grocery Store
  Inventory:Larder:eggs                    4         @@ $0.99
  Inventory:Larder:sausage                 2    lbs  @@ $1.99
  Inventory:Larder:coffee                 90    tbsp @@ $3.99
  Supplier:Harris Teeter
#+END_SRC

2.4 Make coffee

**** Cooking
#+BEGIN_SRC ledger :noweb yes :tangle larder-demo.ledger
2019/01/01 * Coffee
  Inventory:Larder:coffee                 -3    tbsp
  Life:Eating

2.5 Make dinner

2019/01/01 * Dinner
  Inventory:Larder:eggs                   -4
  Inventory:Larder:sausage                -2    lbs
  Life:Eating
#+END_SRC

3 Supplements

3.1 License

Created: 2019-04-29 Mon 01:20

Validate