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.rktin emacs.Geiser mode should be active. If not use
M-x geiser-modeand follow the prompts.Press
C-c C-ato start/enter the REPL and loadtest.rktas the module.If you make changes to
test.rktin its emacs buffer, save the changes withC-x C-sbefore reloading the module into the REPL withC-c C-a.