0

Upon launching doom-emacs, it displays

enter image description here

What does the options main and #1 mean?

It toggle [2] as default, how could I toggle 1

2

Those are your open workspaces. Workspace #1 is named "main". Workspace #2 is named "#1" (new workspaces are named in this format: #N). Workspace #2 is active (hence it's highlighting).

You can switch to workspaces 1 via SPCTAB1 or meta1 or (for non-evil users) C-cw1.

You can get this display by pressing SPCTABTAB (or C-cwd for non-evil users), both are bound to +workspace/display.

This functionality is provided by the :ui workspaces module, which is configured to auto-display your workspaces (like you see) whenever a new workspace is created (one is created every time you open a new frame so you have a fresh workspace per frame).

Here are some other things you can do with workspaces:

  • For evil users:
    • You can switch workspaces with meta1..9
    • You can switch workspaces by name (with completion) with SPCTAB.
    • Create a new workspace: SPCTABn, metat, or M-x +workspace/new)
    • Delete the current workspace: SPCTABd or M-x +workspace/delete
    • Rename the current workspace: SPCTABr
    • A comprehensive list of keybinds is available here and here
  • For non-evil users
    • You can switch workspaces with C-cw1..9
    • You can switch workspaces by name (with completion) with C-cww
    • Create a new workspace: C-cwc
    • Delete the current workspace: C-cwk
    • Rename the current workspace: C-cwr
    • A comprehensive list of keybinds is available here

Hope that helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.