From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing the Environment (such as PATH)
Date: Fri, 26 Feb 2010 11:46:53 +0200 [thread overview]
Message-ID: <83sk8ol46q.fsf@gnu.org> (raw)
In-Reply-To: <87eik8dfjl.fsf@galatea.lan.informatimago.com>
> 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.
next prev parent reply other threads:[~2010-02-26 9:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1893.1267141094.14305.help-gnu-emacs@gnu.org>
2010-02-26 0:08 ` Changing the Environment (such as PATH) Pascal J. Bourguignon
2010-02-26 1:14 ` Rob Emanuele
2010-02-26 9:46 ` Eli Zaretskii [this message]
2010-02-25 23:38 Rob Emanuele
2010-02-26 0:19 ` Óscar Fuentes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83sk8ol46q.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.