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/+emacs/tabs/config.el

75 lines
2.4 KiB
EmacsLisp

;;; config.el --- tabs configuration File for Spacemacs
;;
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
(defvaralias 'tabs-navigation 'centaur-tabs-cycle-scope
"*Specify the scope of cyclic navigation through tabs.
The following scopes are possible:
- `tabs'
Navigate through visible tabs only.
- `groups'
Navigate through tab groups only.
- nil
Navigate through visible tabs, then through tab groups.")
(defvaralias 'tabs-gray-out-unselected 'centaur-tabs-gray-out-icons)
(defvaralias 'tabs-height 'centaur-tabs-height)
(defvaralias 'tabs-show-icons 'centaur-tabs-set-icons)
(defvaralias 'tabs-set-modified-marker 'centaur-tabs-set-modified-marker)
(defvaralias 'tabs-modified-marker 'centaur-tabs-modified-marker)
(defvaralias 'tabs-show-navigation-buttons 'centaur-tabs-show-navigation-buttons)
(defvaralias 'tabs-style 'centaur-tabs-style
"Style of tab.
Available values are \"bar\", \"alternate\", \"box\",
\"chamfer\", \"rounded\", \"slant\", \"wave\", \"zigzag\" ")
(defvaralias 'tabs-set-bar 'centaur-tabs-set-bar)
(defcustom tabs-group-by-project t
"When non-nil, group tabs by projectile project.
Default t. If non-nil calls (tabs-group-by-projectile-project)
Otherwise calls (tabs-group-buffer-groups)"
:type '(boolean)
:group 'tabs)
(defcustom tabs-headline-match t
"When non-nil, make headline use tabs-default-face. Default t.
Calls (tabs-headline-match)"
:type '(boolean)
:group 'tabs)
(defcustom tabs-auto-hide nil
"If non-nil hide tabs automatically after TABS-AUTO-HIDE-DELAY seconds."
:type '(boolean)
:group 'tabs)
(defcustom tabs-auto-hide-delay 2
"Tabs auto hide delay in seconds."
:type '(float)
:group 'tabs)