help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exec path


From: Eli Zaretskii
Subject: Re: exec path
Date: Fri, 23 Aug 2013 20:45:24 +0300

> Date: Fri, 23 Aug 2013 09:57:52 -0700 (PDT)
> From: Rami A <rami.ammari@gmail.com>
> Injection-Date: Fri, 23 Aug 2013 16:57:53 +0000
> 
> I am in the same boat.
> I have exec-path including the bin directory I have my scripts in but then 
> doing:
> M-x compile then echo $PATH I don't see that directory.
> Trying to start any of the scripts by doing M-x compile then "script_name" 
> will prompt emacs to recognize the command.
> I also tried adding to $PATH from my .emscs file but that did not work as 
> well.
> So this did not work:
> (setenv "PATH" (concat (getenv "PATH") ":" (expand-file-name "~/mybin")))
> (setq exec-path (append exec-path (list (expand-file-name "~/mybin")))
> 
> Any pointers?

Set up your PATH outside Emacs to include that "bin directory you have
your scripts in", and Bob's your uncle.

Having exec-path and PATH different is asking for trouble, because
some Emacs commands go through the shell (which looks at PATH), while
others invoke programs directly using exec-path.  If you care about
your sanity, don't ever let these two be out of sync.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]