That was the needed solution. Thanks a lot!
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.