Hi Stefano,

I found some time to hack on beancount-mode. You can find the progress
here
https://bitbucket.org/daniele/beancount/src/default/editors/emacs/beancount.el
(unfortunately I botched the split of my changes in independent patches,
I'll probably rewrite history at some point)

I significantly reworked fontification and I think I solved some of your
complaints below. Please test the changes and let me know.

On 04/01/2019 06:25, Stefano Zacchiroli wrote:
> - completion: I'm not sure how that is supposed to work. beancount-tab
>   as a function works well for accounts and tags (but not metadata
>   key/values, apparently), but if I bind it to TAB I lose indentation,
>   whereas in ledger-mode the two seems to work well together. Maybe I'm
>   not using it right
> 
> - indentation: as above, is there a function to auto-indent the first
>   character of the current line at the right column that I'm not
>   finding? in ledger-mode that's TAB, similarly to what happens with
>   most other major modes for programming languages

Those two points have been fixed following Stefan advice. It works for
me using fundamental-mode as major mode. I haven't implemented
completion of metadata yet.

> - number alignment: I'm missing ledger-mode's equivalent of C-c C-q.
>   beancount-align-numbers is supposed to do that (well, I guess), but:
> 
>   - it doesn't work on the current transaction by default, you have to
>     select it as a region first, which is time consuming; and
> 
>   - is inconsistent across transactions: if you align numbers in
>     separate transactions your ledger will "wiggle" horizontally
> 
>   there is bean-format for that, so I can use it and remap C-c C-q to
>   pipe the current transaction to it as an external filter, but it's
>   weird that such a basic function doesn't work out of the box so I
>   think I'm missing something

I haven't worked on this.

> - highlighting: there's no highlighting of the current entry (usually a
>   transaction), arguably a very minor point, but annoying when you're
>   editing transactions with many postings/tags/metadata

This was easy to implement. You need something like

(setq beancount-highlight-transaction-at-point t)

to enable it.

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/b8b32542-93ab-b3a1-27bc-1f670f605789%40grinta.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to