Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Racket in Emacs?

Tags:

emacs

racket

I don't like DrRacket because it does not have convenient edit capabilities as Emacs, however I can only run Scheme file through adding command "racket current-file.scm" in .emacs, now, I want to run the Scheme file in Emacs described as "Run : Resets the interactions window and runs the program in the definitions window." in DrRacket's manual, I read the command Racket's help "19.1 Running racket and gracket", seemingly it doesn't answer my question, what should I do?

like image 779
abelard2008 Avatar asked Oct 01 '12 13:10

abelard2008


3 Answers

You might want to try Geiser mode for Emacs. There is also a section in the Racket Guide dedicated to describing how to use other editors and CLI tools.

Update: Nowadays I also highly recommend Greg Hendershott's racket-mode as well.

like image 194
Asumu Takikawa Avatar answered Oct 10 '22 14:10

Asumu Takikawa


Greg Hendershott has written racket-mode for using Racket from Emacs.

https://github.com/greghendershott/racket-mode

See the presentation from 2014 RacketCon here:

https://www.youtube.com/watch?v=QWiteH8PARQ&noredirect=1
like image 43
soegaard Avatar answered Oct 10 '22 13:10

soegaard


The racket-lang official website provides some ways to use racket in emacs. Here is the link racket-lang emacs. You can use quack or geiser.

like image 38
Aborn Jiang Avatar answered Oct 10 '22 13:10

Aborn Jiang