Post

Macaulay 2 Emacs setup in Cygwin

In Math, softwares on July 28, 2010 by hoxide

I followed the official documents, but got a error when press F12:

spawning child process: invalid argument

The point is it doesn’t set “Shell” correctly.
By reading M2.el, I find “M2-shell-exe” also need to set.
For example in my computer add

(setq M2-shell-exe “e:/cygwin/bin/bash”)

in to the .emacs file.

Then F12 works.

My setting for Macaulay 2:

;; Macaulay 2
(setq load-path
(append
‘( “e:/M2/usr/share/emacs/site-lisp” )
load-path))
(global-set-key [ f11 ] ‘M2-send-to-program)
(load “M2-init”)
(global-set-key [ f12 ] ‘M2)
(setq M2-exe “e:/M2/usr/bin/M2″)
(setq M2-shell-exe “e:/cygwin/bin/bash”)

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.