<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><blockquote type="cite"><div>On Thu, Jul 14, 2011 at 4:19 AM, Lavoie Francis <<a href="mailto:lav.francis@gmail.com">lav.francis@gmail.com</a>> wrote:<br><blockquote type="cite">First, it looks like emacs for OS X does not use the users' own $PATH, but the one of the system. I tried some hack I found on google (<a href="http://olabini.com/blog/2009/12/path-problem-with-emacs-on-mac-os-x/">http://olabini.com/blog/2009/12/path-problem-with-emacs-on-mac-os-x/</a>, <a href="http://www.emacswiki.org/emacs/EmacsApp#toc2">http://www.emacswiki.org/emacs/EmacsApp#toc2</a>) without luck, emacs can't find racket.<br></blockquote></div></blockquote></div><div><br></div>Check out "User Session Environment Variables" here:<div><br><div><a href="http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html">http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html</a></div></div><div><br></div><div>Basically you create <span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">~/.MacOSX/environment.plist and fill it with what you want. I use the Fink project stuff on MacOS so I modify for emacs INFOPATH, MANPATH, PATH, XML_CATALOG_FILES, and SGML_CATALOG_FILES, such as:</span></div><div><span class="Apple-style-span" style="font-family: monospace; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">...</span></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"> <key>INFOPATH</key>
<string>/sw/share/info:/sw/info:/Applications/Emacs.app/Contents/Resources/info</string></span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">...
</span></font><span class="Apple-style-span" style="font-family: monospace; white-space: pre; "> <key>PATH</key></span></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; "> <string>/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/YOURNAME/usr/bin:/Users/YOURNAME/usr/mongodb/bin:/usr/X11R6/bin</string>
</span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; ">...</span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; "><br></span></font></div></body></html>