From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Young, Ed" Newsgroups: gmane.emacs.help Subject: Re: How to make emacs path aware on MacOSX Date: Thu, 14 Apr 2011 02:17:55 +0000 Message-ID: References: <29BF0E4E-8FAC-401F-9A22-97B2C0A25F9F@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_C9CBB4624059edyoungcablecomcastcom_" X-Trace: dough.gmane.org 1302747499 6454 80.91.229.12 (14 Apr 2011 02:18:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2011 02:18:19 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Perry Smith Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 14 04:18:14 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QAC8K-0007FA-At for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Apr 2011 04:18:12 +0200 Original-Received: from localhost ([::1]:50205 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAC8J-0007D2-GU for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Apr 2011 22:18:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAC8C-0007Cx-3D for help-gnu-emacs@gnu.org; Wed, 13 Apr 2011 22:18:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAC8A-0000Sc-E4 for help-gnu-emacs@gnu.org; Wed, 13 Apr 2011 22:18:04 -0400 Original-Received: from pacdcimo01.cable.comcast.com ([24.40.8.145]:58172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAC8A-0000SP-85 for help-gnu-emacs@gnu.org; Wed, 13 Apr 2011 22:18:02 -0400 Original-Received: from ([147.191.124.13]) by pacdcimo01.cable.comcast.com with ESMTP with TLS id 5503620.119728967; Wed, 13 Apr 2011 22:17:56 -0400 Original-Received: from COPDCEXMB06.cable.comcast.com ([fe80::8c2:4a35:2855:7e94]) by copdcexhub02.cable.comcast.com ([fe80::75a5:63a6:edd4:8538%12]) with mapi id 14.01.0270.001; Wed, 13 Apr 2011 20:17:57 -0600 Thread-Topic: How to make emacs path aware on MacOSX Thread-Index: AQHL+dRMQwmUcN+PBUyLg/giE5uvjZRcrBaA///0lAA= In-Reply-To: <29BF0E4E-8FAC-401F-9A22-97B2C0A25F9F@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.10.0.110310 x-originating-ip: [147.191.125.12] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 24.40.8.145 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80785 Archived-At: --_000_C9CBB4624059edyoungcablecomcastcom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thanks for the reply. I must not have the environment syntax right. I was able to set the path by adding in individual path elements like this: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/comcast/software/groovy/c= urrent/bin:/opt/comcast/software/grails/current/bin:/usr/local/git/bin:/usr= /X11/bin:/opt/comcast/software/gradle/current/bin But what I wanted to do was to set up some environment variables and includ= e them in the path so as to shorten it: SW_HOME /opt/summitbid/software GROOV_HOME $SW_HOME/groovy/currrent Path =85:$GROOVY_HOME:/bin But GROOVY_HOME never resolves to the actual path. From: Perry Smith > Date: Wed, 13 Apr 2011 15:58:47 -0500 To: Edward Young > Cc: "help-gnu-emacs@gnu.org" > Subject: Re: How to make emacs path aware on MacOSX On Apr 13, 2011, at 7:14 AM, Young, Ed wrote: Apologies if this is the wrong forum for this. If so please redirect me. I am running emacs on MacOSX, installed from a DMG file. It works great, but it is not aware of my path, so I can't execute commands= like 'git' or 'svn' etc. How can I configure it to be aware of my path. I'm using the global path va= riable file /etc/profile. The Finder on the Mac (that starts emacs) doesn't look at /etc/profile, etc= . For a particular user, it does look at ~/.MacOSX/environment.plist Its a "property list" thing that is normal for Mac settings. You can find = it documented more on Mac forums and those kinds of places. e.g. http://developer.apple.com/library/mac/#qa/qa1067/_index.html If you are talking about shells started within emacs, thats a different mat= ter. HTH, pedz --_000_C9CBB4624059edyoungcablecomcastcom_ Content-Type: text/html; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable
Thanks for the reply. 

I must not have the environment syntax right. 

I was able to set the path by adding in individual path elements like = this: 

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/comcast/software/gro= ovy/current/bin:/opt/comcast/software/grails/current/bin:/usr/local/git/bin= :/usr/X11/bin:/opt/comcast/software/gradle/current/bin

But what I wanted to do was to set up some environment variables and i= nclude them in the path so as to shorten it: 

SW_HOME /opt/summitbid/software
GROOV_HOME $SW_HOME/groovy/currrent

Path =85:$GROOVY_HOME:/bin

But GROOVY_HOME never resolves to the actual path. 


From: Perry Smith <pedzsan@gmail.com>
Date: Wed, 13 Apr 2011 15:58:47 -05= 00
To: Edward Young <ed_young@cable.comcast.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: How to make emacs path= aware on MacOSX


On Apr 13, 2011, at 7:14 AM, Young, Ed wrote:

Apologies if this is the wrong forum for this. If so please redirect m= e. 

I am running emacs on MacOSX, installed from a DMG file. 

It works great, but it is not aware of my path, so I can't execute com= mands like 'git' or 'svn' etc. 

How can I configure it to be aware of my path. I'm using the global pa= th variable file /etc/profile. 

The Finder on the Mac (that starts emacs) doesn't look at /etc/profile= , etc.  For a particular user, it does look at ~/.MacOSX/environment.p= list

Its a "property list" thing that is normal for Mac settings.=  You can find it documented more on Mac forums and those kinds of pla= ces.


If you are talking about shells started within emacs, thats a differen= t matter.

HTH,
pedz

--_000_C9CBB4624059edyoungcablecomcastcom_--