On 23/01/2019 03:42, Stefano Zacchiroli wrote: > On Tue, Jan 22, 2019 at 06:02:36PM -0700, Daniele Nicolodi wrote: >> Today I decided to explore the option to turn beancount mode into a >> major mode and use outline-minor-mode to preserve the section folding >> functionality used by some. I adapted some code from outshine-mode to >> allow headlines visibility cycling ala org-mode. >> >> While the code needs some cleanup, I'm quite happy with the result: >> the code is simpler and more robust. You can it here: >> >> https://bitbucket.org/daniele/beancount/src/default/editors/emacs/beancount.el > > Nice, thanks for this. > >> Before I start working on polishing the code and breaking up my >> changesets to be pushed upstream, I would like to know if current >> users of beancount-mode find this approach interesting. > > I personally don't have a use for it, but I've tested transaction > folding in this beancount-mode version and it did work fine. > > I've noticed another glitch though, which I think is new. > > "(setq beancount-posting-alignment-column 4)" in my global Emacs > configuration seems to no longer impact indentation level. The variable > is set properly to 4 while I'm in beancount-mode, but TAB pulls back > postings to the 2nd column. Looking at the code the variable seems to be > used correctly, so I'm not sure what's causing this. Can you reproduce > it?
I renamed the two variables that control alignment. Now they are beancount-transaction-indent and beancount-number-alignment-column. I think those names are better than my old choice. I mentioned that in a previous email, but you may have missed it. I also forgot to mention that this version drops the cache for account names used for completion. I tested it on a ledger of mines with more than two years of personal transactions and completion is instantaneous. However, I would appreciate if users with very large ledgers would test it and let me know how responsive it feels. 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/b5564053-2085-ec91-ab3f-fa3dc6f28281%40grinta.net. For more options, visit https://groups.google.com/d/optout.
