2019-08-10 14:14:51 -04:00
|
|
|
;;; ui/tabs/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
(use-package! centaur-tabs
|
2020-05-18 02:50:22 -04:00
|
|
|
:hook (doom-first-file . centaur-tabs-mode)
|
2019-08-10 14:14:51 -04:00
|
|
|
:init
|
2019-12-30 00:49:32 -05:00
|
|
|
(setq centaur-tabs-set-icons t
|
|
|
|
centaur-tabs-gray-out-icons 'buffer
|
2019-08-10 14:14:51 -04:00
|
|
|
centaur-tabs-set-bar 'left
|
2019-12-30 00:49:32 -05:00
|
|
|
centaur-tabs-set-modified-marker t
|
|
|
|
centaur-tabs-close-button "✕"
|
2020-08-02 15:33:48 +08:00
|
|
|
centaur-tabs-modified-marker "•"
|
2020-05-03 14:55:36 -04:00
|
|
|
;; Scrolling (with the mouse wheel) past the end of the tab list
|
|
|
|
;; replaces the tab list with that of another Doom workspace. This
|
|
|
|
;; prevents that.
|
|
|
|
centaur-tabs-cycle-scope 'tabs)
|
2019-08-10 14:14:51 -04:00
|
|
|
|
|
|
|
:config
|
|
|
|
(add-hook '+doom-dashboard-mode-hook #'centaur-tabs-local-mode)
|
2020-05-18 02:50:22 -04:00
|
|
|
(add-hook '+popup-buffer-mode-hook #'centaur-tabs-local-mode))
|
2019-12-30 00:49:32 -05:00
|
|
|
|
|
|
|
|
|
|
|
;; TODO tab-bar-mode (emacs 27)
|
|
|
|
;; TODO tab-line-mode (emacs 27)
|