With help from the yasnippet community, I've figured out a good yasnippet 
for inserting transactions. Place this in ~/.emacs.d/snippets/org-mode/bc 
and trigger on bc_ when yasnippet is loaded.

# -*- mode: snippet; require-final-newline: nil -*-
# name: beancount
# key: bc_
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
# type: snippet
# binding: direct-keybinding
# --
`(format-time-string "%Y-%m-%d")` * "${1:Description}"
  ${2:Account$$(yas-choose-value beancount-accounts)}    ${3:AMT} 
${4:CUR$(yas-choose-value '("USD" "DKK"))}
  ${5:Account$$(yas-choose-value beancount-accounts)}   -$3 $4

bc_$0

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/ed815d94-af0f-40bf-8d40-4016debc143d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to