spacemacs/layers/+spacemacs/spacemacs-layouts/README.org

67 lines
2.4 KiB
Org Mode
Raw Normal View History

2017-04-25 15:42:58 +00:00
#+TITLE: spacemacs-layouts layer
#+TAGS: layer|misc|spacemacs
2019-05-05 17:26:40 +00:00
2019-05-07 20:05:06 +00:00
* Table of Contents :TOC_5_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description][Description]]
- [[#features][Features:]]
- [[#restrict-functions-to-the-current-layouts-buffers][Restrict functions to the current layout's buffers]]
- [[#restrict-spc-tab-to-the-current-layouts-buffers][Restrict SPC-TAB to the current layout's buffers]]
2017-04-25 15:42:58 +00:00
* 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:
#+BEGIN_EXAMPLE
'(spacemacs/window-split-double-columns
spacemacs/window-split-triple-columns
spacemacs/window-split-grid)
#+END_EXAMPLE
The list can be edited in the ~dotspacemacs-configuration-layers~ variable near
the top of ~.spacemacs~ like this:
#+BEGIN_EXAMPLE
(spacemacs-layouts :variables
spacemacs-layouts-restricted-functions
'(spacemacs/window-split-double-columns
spacemacs/window-split-triple-columns
spacemacs/window-split-grid))
#+END_EXAMPLE
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:
#+BEGIN_EXAMPLE
(spacemacs-layouts :variables spacemacs-layouts-restrict-spc-tab t)
#+END_EXAMPLE
Note that ~spacemacs-layouts-restrict-spc-tab~ also can be toggle on the fly by
evaluating it like this:
#+BEGIN_EXAMPLE
(setq spacemacs-layouts-restrict-spc-tab t)
#+END_EXAMPLE