[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ESS/Matlab Path in Cocoa Emacs
From: |
Tan |
Subject: |
Re: ESS/Matlab Path in Cocoa Emacs |
Date: |
Sat, 16 Jun 2012 02:42:32 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Peter Dyballa <Peter_Dyballa <at> Web.DE> writes:
>
>
> Am 24.12.2010 um 20:52 schrieb Harold Pimentel:
>
> > apply: Searching for program: No such file or directory, R
> > apply: Searching for program: No such file or directory, matlab
>
> You could either use the method with ~/.MacOSX/environment.plist (see
> for example http://www.astro.washington.edu/users/rowen/
> AquaEnvVar.html) or you can put into your init file something like:
>
> (setenv "PATH" (concat "/some/directory/with/R_and_matlab" path-
> separator (getenv "PATH")))
>
> (and also for Eacs-only EXECPATH).
>
> A third option is to launch Cocoa Emacs from a shell script or
> AppleScript file which internally sets PATH correctly like in this
> example:
>
> env PATH="/some/directory/with/R_and_matlab:$PATH" open /Applications/
> Cocoa\ Emacs
>
> --
> Greetings
>
> Pete
>
> Who the fsck is "General Failure," and why is he reading my disk?
>
>
Hi Peter,
Greetings. It took me sometime to find this post as I tried really
hard to get the matlab mode working.
The third method works for me, I have:
$ env PATH="/Applications/MATLAB_R2012a.app/bin/matlab:$PATH" open
/Applications/Emacs.app
However the init file method doesn't work. I put in my init file:
(setenv "PATH" (concat "/Applications/MATLAB_R2012a.app/bin/matlab" ":" (getenv
"PATH")))
Emacs still shows the "no such file or directory" error message.
Any idea? Thanks a lot!
Best,
Tan
- Re: ESS/Matlab Path in Cocoa Emacs,
Tan <=