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

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

Re: Changing the Environment (such as PATH)


From: Rob Emanuele
Subject: Re: Changing the Environment (such as PATH)
Date: Thu, 25 Feb 2010 17:14:48 -0800

Thank you all.  Those were very helpful suggestions.


On Thu, Feb 25, 2010 at 4:08 PM, Pascal J. Bourguignon
<pjb@informatimago.com> wrote:
> Rob Emanuele <rje@crystalfontz.com> writes:
>
>> Greetings,
>>
>> I'm using Emacs for osx (the carbon version) and I need a way to alter
>> the path in which emacs searches for programs.  I need to alter this
>> path after emacs has started.  For example, I need to run a particular
>> version of arm-eabi-gdb or scons.  These executables are not in the
>> usual places as they are custom per project.  I would like to be able
>> to alter my path after emacs has started so that I can use 'M-x gdb'
>> and just type arm-eabi-gdb to invoke it.  Is this possible?
>
> exec-path is the variable used by emacs (initialized from (getenv "PATH")).
>
>
> Otherwise, you can modify the environment variable PATH for the
> subprocesses from emacs with:
>
> (require 'cl)
> (setf (getenv "PATH") "....")
>
> --
> __Pascal Bourguignon__
>




reply via email to

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