all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sven Joachim <svenjoac@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing the PATH from emacs?
Date: Mon, 11 Feb 2008 18:45:03 +0100	[thread overview]
Message-ID: <871w7j9ylc.fsf@gmx.de> (raw)
In-Reply-To: 87odanqwxr.fsf@lvps87-230-32-149.dedicated.hosteurope.de

On 2008-02-11 17:28 +0100, Stefan Arentz wrote:

> I'm using Emacs.app, the Carbon emacs for OS X. Works great, but it
> can't find ispell, which was installed in /opt/local/bin, a path that
> is not by default in the system PATH.
>
> There doesn't seem to be a way to do this through Emacs.app/Info.plist
> so my question is whether it possible to change the PATH from my
> .emacs profile?

I think you should not change PATH, but rather the `exec-path' Lisp
variable.  Quoting the Emacs Lisp reference manual:

,----
|  -- User Option: exec-path
|      The value of this variable is a list of directories to search for
|      programs to run in subprocesses.  Each element is either the name
|      of a directory (i.e., a string), or `nil', which stands for the
|      default directory (which is the value of `default-directory').  
| 
|      The value of `exec-path' is used by `call-process' and
|      `start-process' when the PROGRAM argument is not an absolute file
|      name.
`----

You can use add-to-list to add elements there, e.g.

(add-to-list 'exec-path "/opt/local/bin" t)

to let Emacs search for programs in /opt/local/bin.

Sven


  parent reply	other threads:[~2008-02-11 17:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-11 16:28 Changing the PATH from emacs? Stefan Arentz
2008-02-11 17:25 ` Peter Dyballa
     [not found] ` <mailman.7293.1202750758.18990.help-gnu-emacs@gnu.org>
2008-02-11 17:38   ` Stefan Arentz
2008-02-11 17:42   ` Sven Joachim
2008-02-11 17:52     ` Stefan Arentz
2008-02-11 17:59       ` Sven Joachim
2008-02-11 17:45 ` Sven Joachim [this message]
2008-02-13 17:16 ` Stefan Monnier

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=871w7j9ylc.fsf@gmx.de \
    --to=svenjoac@gmx.de \
    --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.