spacemacs/layers/+emacs/tabs
Daniel Nicolai 44add11c7a Add auto hide tabs feature to tabs layer
Ideally it would be great to implement tabs switch with C-tab (or C-}) that
shows the tabs as long as C is pressed. However Emacs does not support key
release events so this function uses a timer as a workaround.

To me Emacs looks better when tabs are hidden, and also packages like
pdf-continuous-scroll-mode break when tabs are shown.
2021-02-13 23:55:17 +01:00
..
config.el Add auto hide tabs feature to tabs layer 2021-02-13 23:55:17 +01:00
funcs.el Add auto hide tabs feature to tabs layer 2021-02-13 23:55:17 +01:00
packages.el Add auto hide tabs feature to tabs layer 2021-02-13 23:55:17 +01:00
README.org Add auto hide tabs feature to tabs layer 2021-02-13 23:55:17 +01:00

Tabs layer

Description

This layer adds support for tabs. Implementation is done using Centaur Tabs.

Features:

  • Sets up tabs using Centaur tabs as backend
  • Optionally auto hide tabs after delay

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add tabs to the existing dotspacemacs-configuration-layers list in this file.

Hide tabs

You can set hooks for buffers in which it isn't desired to have tabs by customizing centaur-tabs-hide-tabs-hooks

Alternatively you can set tabs-auto-hide to t to auto hide tabs after some delay tabs-auto-hide-delay via the :variables keyword in your dotfile:

     (tabs :variables
           tabs-auto-hide t
           tabs-auto-hide-delay 3)

Key bindings

Key binding Description
C-{ Select the previous available tab
C-} Select the next available tab
C-M-{ Move current tabe to left
C-M-} Move current tabe to right
C-c t s Display a list of current buffer groups using Counsel
C-c t p Group buffer tabs by projectile
C-c t g Group buffer tabs by groups