This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+spacemacs/spacemacs-layouts
Magnus Therning 3496f0c1f2 [persp][helm][ivy] project perspective and open dired
Add key bindings to the `SPC p l` persp switch project prompt:
- helm `C-d`
- ivy `d` in the `M-o` actions list

They create a new perspective with the project name
and open a dired buffer at the project root.

The suggestion to also add it to ivy was provided by nixmaniack.
2020-01-19 12:13:46 +01:00
..
config.el Unique defvar for each ts full-hint toggle 2019-10-13 10:09:42 +02:00
funcs.el [persp][helm][ivy] project perspective and open dired 2020-01-19 12:13:46 +01:00
packages.el [persp][helm][ivy] project perspective and open dired 2020-01-19 12:13:46 +01:00
README.org documentation formatting: Fri Dec 27 10:27:09 UTC 2019 2019-12-27 12:40:57 +02:00

spacemacs-layouts layer

Description

This layer adds support for distinct layouts/workspaces to Spacemacs.

Features:

  • Support for distinct layouts via eyebrowse
  • Integration with helm and ivy to search for buffers within layouts

Restrict functions to the current layout's buffers

Besides helm-mini and ivy-switch-buffer that are aware of a layout's buffers. This layer also provides a spacemacs-layouts-restricted-functions variable that holds a list of functions that will be restricted to the current layout's buffers.

Default value of spacemacs-layouts-restricted-functions is:

  '(spacemacs/window-split-double-columns
    spacemacs/window-split-triple-columns
    spacemacs/window-split-grid)

The list can be edited in the dotspacemacs-configuration-layers variable near the top of .spacemacs like this:

  (spacemacs-layouts :variables
                     spacemacs-layouts-restricted-functions
                     '(spacemacs/window-split-double-columns
                       spacemacs/window-split-triple-columns
                       spacemacs/window-split-grid))

Note that spacemacs-layouts-restricted-functions can only be changed in the dotspacemacs-configuration-layers variable. They can't be edited during the current Emacs session. A restart is required.

Restrict SPC-TAB to the current layout's buffers

When the spacemacs-layouts-restrict-spc-tab variable is set to t, then SPC-TAB (spacemacs/alternate-buffer) will be restricted to only switch between the current layout's buffers.

Default value of spacemacs-layouts-restrict-spc-tab is nil.

It can be enabled in the dotspacemacs-configuration-layers variable near the top of .spacemacs like this:

  (spacemacs-layouts :variables spacemacs-layouts-restrict-spc-tab t)

Note that spacemacs-layouts-restrict-spc-tab also can be toggle on the fly by evaluating it like this:

  (setq spacemacs-layouts-restrict-spc-tab t)