On Sat, Jan 19, 2008 at 06:45:29PM -0800, David Brown wrote:
GNU Emacs 'run-lisp' mode works pretty well. Just
Correction, GNU Emacs has a useful scheme mode that seems to work quite well. Just do. M-x run-scheme To start up the scheme interpreter. If you're using MIT-scheme, there is a better version tailored specifically to that. Just add: (require 'xscheme) to your .emacs to get it. While editing a .scm file, you can hit various keys: M-o - send the entire buffer to the scheme interpreter. M-z or M-C-x - Send the current define to the scheme interpreter. C-c C-s - Switch to the scheme buffer. You can type expressions in the scheme buffer and test your results. It's quite a useful environment. Oh, one other piece of advice. Learn to use the magic parens in Emacs. The idea is that you never insert unbalanced parens. M-( Inserts balanced parens and placed you inside of them. M-) Moves past a ')', goes to the next line, and indents. C-u 2 M-( Inserts balanced parens around the next 2 sexps. C-M-f Move forward across sexps. C-M-k Kill the next sexp. I use the magic parens so much in lisp that I've bound them to the '[' and ']' keys, which are otherwise rarely used inside of lisp. You can still get them with "C-q [", and "C-q ]". etc. -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
