If you're reading SICP or Little Schemer or any Scheme book and find MIT Scheme REPL not too comfortable, here is a brief guide to start hacking Scheme in Emacs:
1. Install MIT Scheme (using your platform's package manager)
$ sudo apt-get install mit-scheme
2. Emacs comes with inbuilt support for Lisp/Scheme. Open Scheme source file (*.ss or *.scm) for Scheme major mode to kick in.
3. M-x run-scheme
This will start MIT Scheme REPL in inferior-mode in a buffer.
4. With the REPL open, Open another buffer for your Scheme source code (using C-x 2 or C-x 3)
5. Now you can directly eval code from your buffer. Just move cursor to the end of any expression (C-e) and evaluate it using C-x C-e
Subscribe to:
Post Comments (Atom)
If you don't know Emacs already, DrRacket / DrScheme is way better
ReplyDelete