grierson
2021-7-12 10:47:52

Does anyone use Spacemacs?


sorawee
2021-7-12 10:48:48

I used to


sorawee
2021-7-12 10:49:05

Recently switched to Doom Emacs


grierson
2021-7-12 10:49:33

Argh okay. Getting an issue when trying to execute racket-mode


grierson
2021-7-12 10:49:47

sorawee
2021-7-12 10:50:15

Can you run racket in terminal?


grierson
2021-7-12 10:55:17

yes


grierson
2021-7-12 10:55:34


sorawee
2021-7-12 10:58:11

That is, input SPC f e e


grierson
2021-7-12 11:01:19

Do I need to include racket bin as a PATH?


sorawee
2021-7-12 11:03:42

Yeah, sure.


soegaard2
2021-7-12 11:20:20

Just in case: remember to restart spacemacs after changing the path in the terminal.


sorawee
2021-7-12 11:22:48

Well, and also restart spacemacs after SPC f e e.

The problem is that Emacs as a GUI application doesn’t read PATH, but there are packages that will copy over settings from PATH to Emacs. Spacemacs uses this package, and it’s invoked via SPC f e e.


grierson
2021-7-12 11:32:37

Thanks. I fixed it now. Deleted Racket then installed via brew so spacemacs could pick it up


grierson
2021-7-12 11:37:55

Got it working now. Thanks guys. Bit easier to work with now :slightly_smiling_face:


greg
2021-7-12 14:12:26

@grierson Some discussion: https://www.racket-mode.com/#Configure


greg
2021-7-12 14:13:04

As that mentions, on macOS some people like to use the little exec-path-from-shell package to handle that issue generally.


greg
2021-7-12 14:14:13

Also you can always change the Emacs customization var racket-program to an absolute path. (I do that sometimes just b/c I juggle various versions of Racket sometimes to test things.)


greg
2021-7-12 14:15:02

This is probably more info than you wanted to know, just to run, and you already found a solution — but in case you ever need/want it, there you go. :smile: