From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.help Subject: Re: Changing the PATH from emacs? Date: Mon, 11 Feb 2008 18:45:03 +0100 Message-ID: <871w7j9ylc.fsf@gmx.de> References: <87odanqwxr.fsf@lvps87-230-32-149.dedicated.hosteurope.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202755316 22016 80.91.229.12 (11 Feb 2008 18:41:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 18:41:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 11 19:42:18 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOdbR-0001Ah-PA for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2008 19:42:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOday-0007T8-G5 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2008 13:41:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: p548662be.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1202751845 5301 84.134.98.190 (11 Feb 2008 17:44:05 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 11 Feb 2008 17:44:05 +0000 (UTC) User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.90 (gnu/linux) Cancel-Lock: sha1:jGMe5386I0cJduZhLXS8bMw/5s8= Original-Xref: shelby.stanford.edu gnu.emacs.help:156059 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51431 Archived-At: 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