How to run Racket in Emacs?
Asked Answered
D

3

10

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?

Derr answered 1/10, 2012 at 13:29 Comment(3)
I remember there were something related to activating emacs shortcuts in drracket settings (I think it was something like disabling menu shortcuts). Also have you seen this?Nailhead
I used quack, and I can execute scheme file in emacs! but I want to have the similar "the interactions window and runs the program in the definitions window" as described in 3.1.5 RacketDerr
Did you find a solution to this abelard20008?Lacustrine
V
18

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.

Valonia answered 1/10, 2012 at 15:5 Comment(1)
@albelard20008: in particular, there's a whole section on integrating with Emacs in: docs.racket-lang.org/guide/Emacs.htmlGoodlooking
E
2

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.

Ethben answered 2/5, 2014 at 13:29 Comment(0)
C
2

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
Calfskin answered 18/1, 2015 at 23:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.