sudo apt-get mit-scheme
;
run "scheme" then you enter the command line scheme repl;
sudo apt-get emacs
;
modify "(setq scheme-program-name "scm")" in .emacs to "(setq scheme-program-name "scheme")", because our scheme command is "scheme";
install quack with apt-get install emacs-goodies-el
;
open emacs and create a new buffer with "C-x C-f myfile.scm";
input following code:
(define (mydouble x) (+ (* x 2) 10))
save file: C-x C-s;
split window: C-x 2;
switch to bottom window: C-x o;
start scheme repl at bottom window: M-x run-scheme
switch back to top window: C-x o;
parse code: C-x C-e;
switch back to bottom window(C-x o) and run "(mydouble 3)", you got 16;
modify source file in upper window and parse it again (C-x C-e);
run "(mydouble 3)" again, now you get another value;
Ref: A tutorial for using Emacs with Scheme
MIT Scheme Development on Ubuntu,布布扣,bubuko.com
MIT Scheme Development on Ubuntu
原文:http://www.cnblogs.com/darkmatter/p/3606764.html