Hello Phil,
On 2015-01-12 20:03 Phil Gee wrote:
> Thanks for the answers so far. Currently I am a little bit puzzled
> because after restarting emacs the ledger-mode does not work anymore,
> I get the following message:
>
> File mode specification error: (file-error "Cannot open load file" "no
> such file or directory" "ledger-mode")
>
> The filename is "Journal_ledger.txt" and the .emacs part concerning
> ledger is as follows:
The error message probably comes from emacs' loading functionality and
"leder-mode" refers to the file you specified in your autoload
declaration. Have you tried moving the autoload line to after you have
set up your load-path? Like so:
(add-to-list 'load-path
(expand-file-name "/usr/local/Cellar/ledger/3.1/share/emacs/site-lisp/"))
(add-to-list 'auto-mode-alist '("\_ledger.txt$" . ledger-mode))
;; after setting up the load-path
(autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t)
HTH,
--
Alexander Baier
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.