Ciao Stefano, On 02/01/2019 13:42, Stefano Zacchiroli wrote: > Is any of the Emacs & Beancount users on this list using ledger-mode to > edit Beancount ledgers? > > I've never found my way around beancount-mode and I really wanted a > major mode dedicated to accounting, so I've started playing with using > ledger-mode for Beancount. > > The basics (indentation, account completion) work surprisingly well out > of the box. Plus, one can add beancount-mode on top of it as a minor > mode and get stuff like bean-context. There are some glitches, e.g., > transaction highlighting is completely broken, but nothing unbearable. > > Is anyone using ledger-mode for Beancount and can point to tips or > suitable configuration snippets? > > If the ledger-mode-for-Beancount user base is non nil we might have > chances of adapting it and pushing upstream changes that make it work > very well for Beancount.
I am an Emacs and Beancount user who migrated from Ledger. I tried briefly to use ledger-mode for beancount files, but the broken syntax highlighting was to annoying for me. Unfortunately fixing ledger-mode regular expressions to work nicely for beancount files is non-trivial because the Ledger syntax is much less regualr that Beancount one. On the other hand, because of this enhancing benacount-mode is way easier. I think that this second option is preferable. I think that ledger-mode and and beancount-mode have compatible licenses, thus porting code should not be an issue, if necessary. I agree that ledger-mode provides some functionality that would be nice to have in beancount-mode and I started to work on some, however I'm far from fluent in Elisp and I don't have much free time to work on this right now. Which functionalities do you miss the most in beancount-mode? Time permitting the next thing I will look into is probably investigate a way to have beancount-mode work as a major mode in addition to a minor mode, but I haven't found another mode that does something similar to take inspiration from, and my Elisp knowledge is too scattered to know if that is really a possibility. Cheers, Dan -- 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/7f1a7d49-f124-eb76-20da-c1fd33fcab94%40grinta.net. For more options, visit https://groups.google.com/d/optout.
