On 2015-01-10 05:12, Phil Gee <[email protected]> writes:

> 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

I never know which path I need to set, but there are two places
possible. Here is what I have in my configuration file:

#+begin_src emacs-lisp
(setenv "PATH" (concat "/Users/schmitta/bin:/usr/local/bin:"
                       "/Users/schmitta/.cabal/bin:"
                       "/usr/local/MacGPG2/bin:"
                       (getenv "PATH")))
(push "/Users/schmitta/bin" exec-path)
(push "/usr/local/bin" exec-path)
(push "/usr/local/MacGPG2/bin" exec-path)
(push "/Users/schmitta/.cabal/bin" exec-path)
#+end_src

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7

-- 

--- 
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.

Attachment: signature.asc
Description: PGP signature

Reply via email to