Re: [emacs] using ledger-mode for beancount

2019-01-20 Thread Daniele Nicolodi
On 20/01/2019 09:26, Stefano Zacchiroli wrote: > Since we're talking about customizability, it would be nice to have a > local variable to set the desired amount of indentation. I know > beancount goes for 2 spaces by default, but I currently use 4, for > consistency with ledger. YMMV. It is

Re: Portfolio returns calculator

2019-01-20 Thread 'Patrick Ruckstuhl' via Beancount
Hi, That looks very interesting. I'm doing something similar right now. Two things that I found necessary/helpful: * I have one interest account and I just tie it to the security by adding an empty posting. e.g. 2015-01-22 * "Dividend"   Assets:Investment:CHCORP  

Re: Supported syntaxes for acquiring lots

2019-01-20 Thread Martin Blais
That sounds like a bug It should be accepted without a zero On Sat, Jan 19, 2019, 12:07 Martin Michlmayr * Jeff Brantley [2019-01-19 11:23]: > > How new? I'm running Beancount 2.2.0, per `bean-check --version`. > > > > If I try to use { # 123 USD} instead of {{123 USD}}, bean-check barfs > with

Re: [emacs] using ledger-mode for beancount

2019-01-20 Thread Stefano Zacchiroli
On Sat, Jan 19, 2019 at 10:59:36PM -0700, Daniele Nicolodi wrote: > I have now re-implemented number alignment. It is automatically > triggered on newline and on tab. I also implemented > beancount-align-transaction that you can bind to C-C C-q to obtain the > ledger-mode functionality. I've

Re: [emacs] using ledger-mode for beancount

2019-01-20 Thread Stefano Zacchiroli
On Sun, Jan 20, 2019 at 09:32:24AM -0700, Daniele Nicolodi wrote: > (setq beancount-posting-alignment-column 4) Nice :-) -- Stefano Zacchiroli . z...@upsilon.cc . upsilon.cc/zack . . o . . . o . o Computer Science Professor . CTO Software Heritage . . . . . o . . . o o Former Debian Project

Re: [emacs] using ledger-mode for beancount

2019-01-20 Thread Daniele Nicolodi
On 20/01/2019 19:36, Daniele Nicolodi wrote: > I changed the customization variable names to > > beancount-transaction-indent > beancount-number-alignment-column > > which seem more descriptive (and a bit shorter). I forgot to mention that to obtain automatic alignment column determination now

Re: [emacs] using ledger-mode for beancount

2019-01-20 Thread Daniele Nicolodi
Hi Stefano, I just commit another round of updated. On 20/01/2019 09:26, Stefano Zacchiroli wrote: > On Sat, Jan 19, 2019 at 10:59:36PM -0700, Daniele Nicolodi wrote: > I was initially surprised that the function doesn't also align each line > of the transaction before aligning the amounts