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: Óscar Fuentes
Subject: Re: Changing the Environment (such as PATH)
Date: Fri, 26 Feb 2010 01:19:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

Rob Emanuele <rje@crystalfontz.com> writes:

> 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?

There is an interactive `setenv' command which asks for an environment
variable and its value, but in this case maybe you will find more
practical to do this:

* switch to the *Scratch* buffer.

* type:

(setenv "PATH" (concat "/your/path/goes/here:" (getenv "PATH")))

* don't forget the colon!

* with the cursor after the last closing parenthesis, type C-x C-e

Done. You now have /your/path/goes/here as the first entry of PATH.





reply via email to

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