This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-19
Channels
- # aleph (3)
- # beginners (90)
- # boot (1)
- # cider (1)
- # cljdoc (23)
- # clojars (1)
- # clojure (91)
- # clojure-dev (8)
- # clojure-greece (1)
- # clojure-italy (17)
- # clojure-japan (1)
- # clojure-nl (6)
- # clojure-spec (4)
- # clojure-uk (89)
- # clojurescript (48)
- # core-async (5)
- # cursive (79)
- # datascript (1)
- # datomic (40)
- # duct (1)
- # emacs (7)
- # figwheel-main (2)
- # graphql (7)
- # jobs (5)
- # nyc (5)
- # off-topic (61)
- # other-languages (2)
- # parinfer (6)
- # re-frame (63)
- # reagent (131)
- # ring-swagger (6)
- # shadow-cljs (158)
- # spacemacs (14)
- # tools-deps (15)
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?
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?
There are different ways to do it IIRC, but I've mainly done it using desktop-save
/`desktop-load`.
https://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html
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).
& there are various packages with variations. Definitely a there-are-many-ways-to-do-it sort of thing.
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
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 🙂
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