Hi all,
If you run emacs in linux in a GUI environment the problem is
frequently that you set up your PATH in your ~/.bashrc (or equivalent
for your shell) but you launch emacs from your GUI launcher, which
means that emacs never sees your PATH modifications. The solution to
this in most newer desktops (I believe, I have tested in gnome 3) is
to add PATH entries that you want to pass on to emacs in your
~/.pam_environment file. Here is an example line:
PATH
DEFAULT=${PATH}:/usr/local/texlive/2013/bin/x86_64-linux/:/home/egh/local/bin
best, Erik
At Sun, 11 Jan 2015 10:38:03 +0100,
Alan Schmitt <[email protected]> wrote:
>
> 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.
--
Sent from my free software system <http://fsf.org/>.
--
---
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.