I am glad you got it working, but can you explain to me in more detail what you did to get that silly error message? I really hate error messages that are not helpful. "" seems to be the least helpful i have seen and I don't know where it came from.
On Sat, Jan 10, 2015 at 6:12 AM, Phil Gee <[email protected]> wrote: > 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. > -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- 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.
