Working with Scheme and Emacs


Before starting
To work at home with STk scheme, first download and install it, STk home page is here.

  • STk-4.0.1-1.i586.rpm (or later if available) is for linux
  • STkwin32-4.0.1.zip (or later if available) is for windows
    Setting up emacs for STk scheme
  • Load emacs configuration file .emacs from your home directory (~/.emacs).
  • Add: (setq scheme-program-name "stk") at the end of the file, this will use STk scheme to run your programs.
  • Save it (Very importent step).
    Ok, what's now?
    First run scheme typing: Alt-x run-scheme. if STk scheme is not loaded, something is wrong.
    Some usefull commands
  • ctrl-c ctrl-z Switch to the scheme window.
  • ctrl-c ESC r send region to scheme and go to the scheme window.
  • ctrl-c cntr-l Load a file to scheme.

    Have fun