Is it possible to run smoothly files saved by DrRacket
?
for example if I save the following lines in a file called test.rkt
with DrRacket
and want to run it with emacs
. How would I do this?
(require lang/htdp-intermediate)
; this is a test ; and a box comment-out with a box
;example
(check-expect (doubleN 2) 4)
;define
(define (doubleN nat)
(* 2 nat))
(doubleN 4)
The steps are:
Install geiser in emacs following the instructions on the Geiser website.
Open the file
test.rkt
in emacs.Geiser mode should be active. If not use
M-x geiser-mode
and follow the prompts.Press
C-c C-a
to start/enter the REPL and loadtest.rkt
as the module.If you make changes to
test.rkt
in its emacs buffer, save the changes withC-x C-s
before reloading the module into the REPL withC-c C-a
.