Monday, March 26, 2007

MzScheme in Aquamacs Emacs

Aquamacs Emacs has built in support for Scheme, but not for MzScheme, which is one of the versions of Scheme of PLT DrScheme. You envoke it by M-x run-scheme, which searches for scheme in the path.

I have put MzScheme in the path, and I could rename it to scheme, but that would break DrScheme. The solution is to create a symbolic link (symlink) of mzscheme and rename that symlink into scheme. I could do that in Terminal with ln -s mzscheme scheme, but there is also a way to do that in Mac OS X, with the freeware application SymbolicLinker, wich appears in the contextual menu of Finder.

That makes sense, because the reason to use Aquamacs Emacs was to stay in the GUI of Mac OS X, and this SymbolicLinker contextual menu continues using this strategy.

2 comments:

Robby Findler said...

I think you can also just say C-u M-x run-scheme and it will ask you what your Scheme is called. There's probably also a way to set this in your .emacs file.

There is also a Scheme setup for Emacs that you can ask about on the plt-scheme mailing list.

Rene said...

Thanks for that, robby findler. I'm still such a newbie at Emacs.