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
names used for completion. I tested it on a ledger of mines with more