Running mit-scheme in emacs...how do I do it? Hi all, can anyone give me tips on using the interpreter? I can run mit-scheme in the shell and I can (separately) evaluate Lips processes in emacs with C-x C-e but I'm running into a brick wall trying to merge the two. Thanks!
MIT 6.001 Structure and Interpretation of Computer Programs, Spring 2005
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
d3vin solved this by doing C-u M-x run-scheme in emacs, and it works for me too.
The best tip I could give you by now is the following:
1. Download the xscheme.el file from: http://ftp.gnu.org/gnu/mit-scheme/utilities.pkg/xscheme.el
2. Copy the file to ~/.emacs.d/scheme/ (if directories does not exist, create them)
3. Add the following line to your ~/.emacs file:
4. Start your Emacs!
Now when you edit a .scm file you can press M-x o to evaluate the whole buffer or mark a region and press C-M-z to evaluate the region. If you have a windows running the interpreter the result of the evaluation will print there otherwise, the result will be printed in the minibuffer.
That's works great for me! I hope you find it useful too.
@jolisper Thanks for the instructions. It looks like xscheme might use a somewhat different library than mit-scheme so I'm going to stick with what I've got for now and when I can better understand emacs (and the file system hierarchy on linux!) I'll come back to your suggestions. cheers.