Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting Racket Geiser Emacs Path

I'm trying to get Geiser's REPL to work in Emacs, but it doesn't seem to be able to find Racket.

racket is on my path, but anytime I type

run-geiser

followed by

racket

it complains:

Unable to start REPL: Searching for program: no such file or directory, racket

I read in the Geiser docs that I may have to manually tell Geiser where to find racket, but I can't tell where to configure this property of Geiser.

Thanks for your help.

like image 452
Scott Klarenbach Avatar asked Feb 11 '12 02:02

Scott Klarenbach


2 Answers

Ok, so I added:

(setq geiser-racket-binary "/home/user/racket/bin/racket")

to my .emacs file after loading geiser.el.

I was expecting a configuration file somewhere to set this.

Thanks.

like image 138
Scott Klarenbach Avatar answered Nov 07 '22 03:11

Scott Klarenbach


I know this is an old question, but for future people having a hard time getting it to find the Racket executable despite it being in your path, you can simply use the executable-find function.

This searches your path and returns the absolute path to the executable, which is what the geiser-racket-binary function wants. So this is an alternative to explicitly setting the absolute path:

(setq geiser-racket-binary (executable-find "Racket"))
like image 28
Travis Avatar answered Nov 07 '22 03:11

Travis