How do I indent a complex Scheme expression in emacs?
To indent the current line, simply hit Tab and the cursor will position at the right place. Make sure that at the bottom of emacs you can see (Scheme Mode). This can be done by giving your file a .scm extension; or by hitting Esc followed by x and typing scheme-mode in the emacs prompt. To indent globally the whole region, highlight all the source code with the mouse and hit Esc Ctrl-\ (hit Esc followed by “control” and “\” together).