[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the Environment (such as PATH)
From: |
Pascal J. Bourguignon |
Subject: |
Re: Changing the Environment (such as PATH) |
Date: |
Fri, 26 Feb 2010 01:08:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin) |
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__