Skip to Content

Keep a Larder Inventory with Org-mode and Ledger

[0/3] Set up your tech stack.

Create a log.

Create a header

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

Lay out the datetree

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

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

Make coffee

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

Make dinner

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

Editorial and License Information

My name is emsenn and I wrote this essay for the benefit of the commons. To the extent possible under law, I have waived all copyright and related or neighboring rights to it. If you're viewing it on a remote server, you're encouraged to download your own copy. Essays like this are made possible with financial support from readers like you. Thank you. To read more of my work and to learn more about me, visit https://emsenn.net