Ciao Daniele,
I started using your major mode in spacemacs. Good work!
I have some comments:
1) How do you open the beancount file with the tree collapsed?
2) Can you save the tree status?
3) Tree node labels with different asterisks show up all with the same font
4) Is there a better binding than C-c @? It's hard on an American keyboard
5) In org-mode, I could separate labels by adding an extra empty line. The 
behavior is different here.

Grazie,
Ciao,
Stefano

On Friday, June 7, 2019 at 10:09:59 PM UTC-5, Daniele Nicolodi wrote:
>
> Hello, 
>
> I decided to start a new thread about this to give the subject a bit 
> more visibility. 
>
> I have been working on a general revamp of beancount-mode to transform 
> it into a major mode, mostly to enable better completion behavior.  I 
> open a pull request with the result of this work: 
>
>
> https://bitbucket.org/blais/beancount/pull-requests/115/revamp-beancountel/diff
>  
>
> I think I fixed all bugs reported so far and I would like some more 
> extended testing.  There are some significant changes in behavior: 
>
> - It being a major mode now, composing it with org-mode is not possible 
> anymore. I tried to preserve functionality adding integration with 
> outline-minor-mode. To add sectioning functionality back you would need 
> something like 
>
> (define-key* beancount-mode-map (key "C-c C-n") 
>   #'outline-next-visible-heading) 
> (define-key* beancount-mode-map (key "C-c C-p") 
>   #'outline-previous-visible-heading) 
> (add-hook 'beancount-mode-hook #'outline-minor-mode) 
>
> to your Emacs configuration. Recognized headings either start with three 
> or more semicolons or with asterisks.  As per Martin suggestion I 
> implemented fontification of section headings a la org-mode.  Please 
> report any other missing functionality and I'll see how hard it is to 
> bring it back. 
>
> - "TAB" now either indents, completes, or folds the heading depending on 
> the context. It works well for me. 
>
> - amounts in postings are indented so that the decimal point is at the 
> 52nd column. This can be configured customizing 
> `beancount-number-alignment-column`. Setting it to 0 will cause the 
> alignment column to be determined from file content.  Postings in 
> transactions are indented with `beancount-transaction-indent` spaces. 
>
> - pressing "RETURN" on causes the current line to be re-indeted. If the 
> current line is a posting, the amount will be indented as per above. 
> This behavior is defined by Emacs auto indent mechanism. If you don't 
> like it you can disable it setting `electric-indent-chars` to nil, for 
> example like this (untested): 
>
> (defun my-disable-electric-indent () 
>   (setq-local electric-indent-chars nil)) 
> (add-hook 'beancount-mode-hook #'my-disable-electric-indent) 
>
> Thank you for testing! 
>
> 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/2d832766-63ad-4bee-a428-9c7cd757258f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to