sudo apt-get mit-scheme
;code
run "scheme" then you enter the command line scheme repl;get
sudo apt-get emacs
;input
modify "(setq scheme-program-name "scm")" in .emacs to "(setq scheme-program-name "scheme")", because our scheme command is "scheme";emacs
install quack with apt-get install emacs-goodies-el
;it
open emacs and create a new buffer with "C-x C-f myfile.scm";file
input following code:command
(define (mydouble x) (+ (* x 2) 10))tutorial
save file: C-x C-s;top
split window: C-x 2;di
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;