Fork me on GitHub
#spacemacs
<
2020-04-22
>
Drew Verlee16:04:03

Does anyone have a strategy for managing different environments? Specifically lets say i have two github repos for my server and client. Each can started in different modes depending on env vars. Spacemacs layouts can save my buffers and the files i'm working on. But i still need to start repls on both and connect as well as set my env vars. I'm guessing what i want is some custom emacs code to load a layout and automatically launch the repl (how ever the project defines that) as well as set the envs.

practicalli-johnny17:04:08

@drewverlee Maybe custom layout would help https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.org#custom-layouts I assume use some kind of profile (dev, prod) in the clojure project and include that in the call to the repl. Then have a dev-layout and prod-layout. This is all theoretical of course

Joe18:04:30

I've just installed shadow-cljs (on Linux, to /usr/local/bin/shadow-cljs). When I try to cider-jack-in-cljs I get npx shadow-cljs executable not on exec-path. From google I think I need to add the location to my exec path. Is that correct? If so where do I do that?

Joe19:04:15

Ah, so the issue was I didn't have npx installed 😛

practicalli-johnny22:04:56

@allaboutthatmace1789 for future reference, on Spacemacs develop branch SPC f e e opens the spacemacs.env file that contains the path used by Emacs. Use getenv for Spacemacs master .

👍 4
FlavaDave23:04:10

out of nowhere my spacemacs frame stay centered and full width of my screen. if I try to adjust width, or loaction it snaps back. Anyone got any ideas?

aisamu15:04:39

Check SPC w c c or C

FlavaDave14:04:30

didn’t seem to do the trick. Thanks though!

👍 4