[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the Environment (such as PATH)
From: |
Eli Zaretskii |
Subject: |
Re: Changing the Environment (such as PATH) |
Date: |
Fri, 26 Feb 2010 11:46:53 +0200 |
> From: pjb@informatimago.com (Pascal J. Bourguignon)
> Date: Fri, 26 Feb 2010 01:08:46 +0100
>
> 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") "....")
For best results, I recommend modifying _both_ PATH and exec-path.