How to install beancount for use in emacs?

1,034 views
Skip to first unread message

Steve Harmer

unread,
Jan 11, 2018, 5:22:37 PM1/11/18
to Beancount
The title says it all. I apologize for asking such a fundamental question, but I've spent days (literally) trying to figure it out.  I've done what the documentation suggested, but that doesn't work.   If I open a .beancount file, I don't get the minor mode, and if I force the mode using " -*- mode:beancount -*-" it doesn't work either.

For background, I installed beancount using pip.  Everything with beancount works fine.  My emacs is actually spacemacs, so perhaps that is  the issue?

Any help on this would be greatly appreciated, as I am really liking beancount (and fava), but would really like better autocompletion when entering transactions.

Thanks in advance.
Steve

Martin Blais

unread,
Jan 11, 2018, 9:16:39 PM1/11/18
to Beancount
Can you evaluate (require 'beancount)? Does that work?

You can see my config here:



--
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 beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/74867577-9a86-4baf-93d1-45193c444fb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve Harmer

unread,
Jan 12, 2018, 8:04:51 PM1/12/18
to Beancount
Thanks for your help. When I add that to my config file (.spacemacs) I get the error that ‘beancount’ file/folder cannot be found.

I’m out of town at the moment with no internet (except on my phone) so I can’t scroll through your config file at the moment. I will have a look on Sunday when I’m back. I have a feeling I’m missing something fundamental... I’m no expert with Emacs.

And lest I forget to mention it, thanks for this great program. It’s amazing.

Martin Blais

unread,
Jan 12, 2018, 9:37:07 PM1/12/18
to Beancount
Thanks for your nice words.

If the file cannot be found, it's probably that it's not on your load-path.
The load-path is an Emacs variable which provides a list of directories to search for libraries.

--
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 beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.

Metin Akat

unread,
Jan 13, 2018, 8:18:54 AM1/13/18
to bean...@googlegroups.com
I also use spacemacs and this is what I have in my "user-config" section of .spacemacs:

  (add-to-list 'load-path "~/code/beancount/editors/emacs/")
  (require 'beancount)
  (add-to-list 'auto-mode-alist '("\\.beancount\\'" . beancount-mode))

It works



Steve Harmer

unread,
Jan 13, 2018, 5:01:25 PM1/13/18
to Beancount
Perfect thanks! It’s working now. Really appreciate the help.
Reply all
Reply to author
Forward
0 new messages