Error: Emacs File-local-variables error: (void-function beancount-mode)

30 views
Skip to first unread message

sadsada AJKnsjk

unread,
Oct 6, 2022, 8:26:51 PM10/6/22
to Beancount
Hello

I have been using beancount for sometime.  It works fine.

I recently switched operating systems to OpenSuse.

Current Emacs - GNU Emacs 28.1 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0)

Issues:
EMACS - Beancount Mode does not work
File-local-variables error: (void-function beancount-mode)

Location of beancount.el
~.emacs.d/lisp
also created init.el

Please help if you can, I am not sure what is wrong. Also trying to use VIM, which I have never used.  If I can get either to work would be great.

Thank You

Chao Chen

unread,
Oct 6, 2022, 11:47:27 PM10/6/22
to bean...@googlegroups.com
Have you put beancount.el in your emacs load-path? Make sure you can call beancount-mode from emacs.

Regards,
Chao

On Oct 7, 2022, at 08:26, sadsada AJKnsjk <nkj...@gmail.com> wrote:


--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/cfdb071c-c223-4cd8-b58e-88bd2f51a911n%40googlegroups.com.

sadsada AJKnsjk

unread,
Oct 7, 2022, 8:37:07 PM10/7/22
to Beancount
I appreciate the response.

Here is what i performed for init.el

(add-to-list 'load-path "/home/anthony/.emacs.d/lisp/")
(require 'beancount)
(add-to-list 'auto-mode-alist '("\\.beancount\\'" . beancount-mode))

with this init.el
and beancount.el loaded in a directory

It will not work.  It used to work which makes it confusing.
Any help you guys can provide would be greatly as I now rely on this program for my finances!

Chao Chen

unread,
Oct 9, 2022, 8:35:06 PM10/9/22
to bean...@googlegroups.com
(add-to-list 'load-path "/home/anthony/.emacs.d/lisp/")
 
I guess `beancount.el` is the folder `beancount-mode`? If so you're supposed to put the folder in load-path, e.g., ` (add-to-list 'load-path "/home/anthony/.emacs.d/lisp/beancount-mode")`.

If `beancount.el` is already in your emacs load-path, you can just try "M-x load-file" to see whether it works.

 
Regards,
Chao
Reply all
Reply to author
Forward
0 new messages