[OS X Emacs] Re: Switching from Carbon Emacs to Emacs.app
Rodney Sparapani
rsparapa at mcw.edu
Wed Jan 9 18:18:38 EST 2008
Peter Dyballa wrote:
>
> Am 09.01.2008 um 16:50 schrieb Rodney Sparapani:
>
>> There must be a simple way to do this with path_helper.
>
> if [ -x /usr/libexec/path_helper ]; then
> eval `/usr/libexec/path_helper -s`
> fi
>
> in /etc/profile and /etc/csh.login?
>
> --
> Greetings
>
> Pete
Not sure what you mean by that. I meant something like this in .emacs:
(setq exec-path (append exec-path
(split-string (shell-command-to-string
(concat "/usr/libexec/path_helper -c | /usr/bin/grep \"setenv PATH\""
"| /usr/bin/cut -d'\"' -f2 | /usr/bin/tr -d '\012'")) ":")))
On my system, I get:
("/usr/bin" "/bin" "/usr/sbin" "/sbin"
"/Applications/Emacs.app/Contents/MacOS/bin" "/usr/bin" "/bin"
"/usr/sbin" "/sbin" "/usr/local/bin" "/usr/texbin" "/usr/X11/bin")
Note that items 6-9 are duplicates, but 10-12 were not there before.
Rodney
More information about the MacOSX-Emacs
mailing list