I'm doing problems from SICP, using the #lang planet/neil
directive in Racket. I'd prefer to write my code in Emacs, and I'm using Geiser-mode to run a Racket REPL through Emacs.
The way racket prints results tends to use a lot of mcons
which makes the results hard to read.
[email protected]> (list 1 2 3 4)
(mcons 1 (mcons 2 (mcons 3 (mcons 4 '()))))
According to this other question, the output style can be changed inside DrRacket by selecting the "write" output style in the Choose Language dialog box. However this requires the DrRacket GUI; is there a way to change this setting for the Racket REPL?
,enter #f
or pressC-c C-m
in geiser to get back to top level. – Geaghan