emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Harum Budi <harumbudi@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Tips for using orgmode + ledger to record events?
Date: Fri, 1 Mar 2013 08:47:43 +0000	[thread overview]
Message-ID: <87r4jzy09c.fsf@ucl.ac.uk> (raw)
In-Reply-To: <CAJdJKz6zDO3PbzR6PChnbBG9EngO4r--6msccHvuJ3_eUdD95g@mail.gmail.com> (Harum Budi's message of "Wed, 27 Feb 2013 17:29:49 +0700")

Harum,

I am not entirely sure what you are asking.  I use ledger with org all
the time to track my finances.  I use babel for this so have entries
that look like this:

#+name: expenses
#+begin_src ledger :noweb yes
<<expenses-car>>
<<expenses-council>>
<<expenses-credit-cards>>
<<expenses-insurance>>
<<expenses-taxes>>
<<expenses-utilities>>
#+end_src

and then have individual blocks for each of these sub-items.  I then
also have something that brings everything together, including expenses
(as noted above), income, etc.:

#+name: assets
#+begin_src ledger :cmdline -V -s bal assets :results output :noweb yes
<<commodity-prices>>
<<opening-balances>>
<<income>>
<<savings>>
<<expenses>>
#+end_src

I use :noweb to allow me to build up the complete ledger file.

HTH,
eric

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55

  reply	other threads:[~2013-03-01  9:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 10:29 Tips for using orgmode + ledger to record events? Harum Budi
2013-03-01  8:47 ` Eric S Fraga [this message]
2013-03-01 10:09   ` Harum Budi
2013-03-01 13:11     ` Eric S Fraga
2013-03-01 14:17       ` Jeffrey Brent McBeth
2013-03-01 20:13       ` Viktor Rosenfeld
2013-03-04  8:52         ` Eric S Fraga
2013-03-04 21:06           ` Viktor Rosenfeld
2013-03-05  8:44             ` Eric S Fraga
2013-03-05 18:25               ` Viktor Rosenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4jzy09c.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=harumbudi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).