Skip to content

Instantly share code, notes, and snippets.

@al3xandru
Last active November 14, 2023 00:13
Show Gist options
  • Select an option

  • Save al3xandru/582427b2d804f1e8ffbc to your computer and use it in GitHub Desktop.

Select an option

Save al3xandru/582427b2d804f1e8ffbc to your computer and use it in GitHub Desktop.

Spacemacs layout and eyebrowse layers

The “layout” layer is quite confusing. It is basically meant to offer an option to isolate a set of buffers and configure a set of windows.

This is the workflow I have that seems to work for me (nb: I'm using most of the time projects in their own frame):

Creating:

  1. spc l <nr> to create a new layout (or spc p l to create a layout from a project)
  2. setup windows and buffers
  3. spc l s save the layout (asks for a name and file)

Opening:

  1. spc l L to load the layout from file
  2. spc l <the-above-layout>
  3. spc l L to load the layout from file

Note: it's not yet clear to me why I need to load the layout from file twice, but it looks like the first time it only "initializes" the layer and it's only the 2nd time when it restores the windows and buffers.

eyebrowse

It’s some sort of “tab” system per frame which allows each tab to use a different window setup. As of now, I’m not very clear how I could use it, except maybe when working on a larger project and having to maintain in parallel multiple investigation paths.

If you got to this Gist and haven't seen Spacemacs ABC (7), I'm strongly encouraging you to watch this video. It's been the only material I could find that set me on the right path.

@poetworrier
Copy link

idk why this was so hard for me to get at first, this helped a ton!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment