Fork me on GitHub
#spacemacs
<
2018-07-19
>
Chase21:07:21

so say i have my clojure file in a left frame, my repl in the upper right, and then a terminal and a Org mode notes file in the bottom right that I SPC Tab alternate. Is there a way to save that setup so that when I boot up Spacemacs and select my project it opens all those accordingly?

Chase21:07:56

i've seen people able to do something like that using a tiling manager like i3wm, i wonder if emacs has the same capability. i think emacs even has it's own windows manager, right?

eggsyntax21:07:33

Yeah, you can. Hmm, checking...

eggsyntax21:07:33

There are different ways to do it IIRC, but I've mainly done it using desktop-save/`desktop-load`.

eggsyntax21:07:03

You can have it automatically save when you exit, if that's what you would prefer, by setting (desktop-save-mode 1). Or you can leave that off and just save your preferred setup but load it on startup with (desktop-read) (not desktop-load, sorry typo).

Chase21:07:19

ooh! Nice! I had a hunch it would be possible.

Chase21:07:10

where do i put that function/setting? in the spacemacs user-init area? user-config?

eggsyntax21:07:11

& there are various packages with variations. Definitely a there-are-many-ways-to-do-it sort of thing.

eggsyntax21:07:23

user-config.

Chase21:07:43

cool. i'll do some exploring. thanks for the direction!

👍 4
practicalli-johnny22:07:25

I like the layouts approach to organising buffers for files. You could have a layout for each of the projects you work on regularly https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.org#layouts-and-workspaces

eggsyntax13:07:15

I tried layouts and found it didn't work well for me at the time -- but I didn't have a ton of *macs experience yet, and TBH I forget the details. So I ended up switching to using`desktop`. YMMV 🙂

Chase23:07:23

ok, ok. I like it. I'll check this out. I like that it's spacemacs specific. I've been finding it a little hard constantly translating emacs tutorials to spacemacs commands, etc. all while still trying to up my vim-fu

eggsyntax13:07:15

I tried layouts and found it didn't work well for me at the time -- but I didn't have a ton of *macs experience yet, and TBH I forget the details. So I ended up switching to using`desktop`. YMMV 🙂