documentation formatting: Fri Dec 27 10:27:09 UTC 2019

This commit is contained in:
emacspace 2019-12-27 10:27:09 +00:00 committed by Eugene Yaremenko
parent 9b83609370
commit c7d77dfc46

View file

@ -22,29 +22,29 @@ 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 elisp
'(spacemacs/window-split-double-columns
spacemacs/window-split-triple-columns
spacemacs/window-split-grid)
#+end_example
#+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 elisp
(spacemacs-layouts :variables
spacemacs-layouts-restricted-functions
'(spacemacs/window-split-double-columns
spacemacs/window-split-triple-columns
spacemacs/window-split-grid))
#+end_example
#+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.
@ -54,13 +54,13 @@ 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 elisp
(spacemacs-layouts :variables spacemacs-layouts-restrict-spc-tab t)
#+end_example
#+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 elisp
(setq spacemacs-layouts-restrict-spc-tab t)
#+end_example
#+BEGIN_EXAMPLE
(setq spacemacs-layouts-restrict-spc-tab t)
#+END_EXAMPLE