Hello all,
I have exactly the same problem on Emacs 25 after installing ledger-mode
from MELPA; ledger-mode-20180224.1936
I put this in my init.el:
(autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t)
(add-to-list 'load-path
(expand-file-name "~/Dropbox/.emacs.d/elpa/"))
(add-to-list 'auto-mode-alist '("\\.dat$" . ledger-mode)) # My master ledger
file is "ledger.dat"
When I invoke ledger mode, M-x ledger-mode, I get the error (translation from
Swedish):
Searching for program: File or catalog does not exist, ledger
/Nikolai
Den måndag 12 januari 2015 kl. 19:03:57 UTC skrev Phil Gee:
>
> 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:
>
> (autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t)
>
> (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))
>
>
>
> Am Samstag, 10. Januar 2015 14:12:10 UTC+1 schrieb Phil Gee:
>>
>> Hello,
>>
>> I am fairly new to ledger and emacs. Ok, to be more precise I currently
>> give emacs a second chance by using it for ledger. The latter one works
>> perfectly fine as command line tool in any folder, ie ledger is to be found
>> in the $PATH-variable. However, if I try to run ledger-mode in emacs
>> (obviously after setting it up in .emacs as described in the manual) I get
>> the error message "" after trying to generate a balance record:
>>
>> Command: ledger -f /Users/phil/ledger/test/input/demo.ledger bal
>>
>> ===============================================================================
>>
>> /bin/bash: ledger: command not found
>>
>> Hmm... Could it be that the emacs shell works with a different
>> $PATH-variable?
>>
>> My .emacs-file contains the following passage (copypasted from the
>> manual):
>>
>> ;; Setting up Ledger
>> (autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t)
>>
>> (add-to-list 'load-path
>> (expand-file-name
>> "/usr/local/Cellar/ledger/3.1/share/emacs/site-lisp/ledger"))
>> (add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode))
>>
>> I tried to append my $PATH-Variable by reading it during the
>> initialization:
>>
>> (let ((path (shell-command-to-string ". ~/.bashrc; echo -n $PATH")))
>> (setenv "PATH" path)
>> (setq exec-path
>> (append
>> (split-string-and-unquote path ":")
>> exec-path)))
>>
>>
>> However, without any success...
>>
>> What am I doing wrong?
>>
>> Best,
>>
>> Philipp
>>
>
--
---
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.