Setting Racket Geiser Emacs Path

前端 未结 3 1136
情歌与酒
情歌与酒 2021-01-04 08:25

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

         


        
相关标签:
3条回答
  • 2021-01-04 09:00

    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"))
    
    0 讨论(0)
  • 2021-01-04 09:01

    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.

    0 讨论(0)
  • 2021-01-04 09:01

    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.

    0 讨论(0)
提交回复
热议问题