Setting Racket Geiser Emacs Path

不羁的心 提交于 2019-11-30 18:35:15
Scott Klarenbach

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.

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"))

In Windows, adding the location of the Racket executable to the "path" environment variable which is part of Windows will allow Geiser/Emacs to find the Racket Executable.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!