fix(tabs): defer centaur-tabs-mode in daemon sessions

Fix: #6647
Fix: #7477
Close: #7276
This commit is contained in:
Henrik Lissner 2024-06-20 17:37:14 -04:00
parent 56f33bc7ed
commit fddc912f81
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -10,7 +10,7 @@
;;; Packages
(use-package! centaur-tabs
:hook (doom-first-file . centaur-tabs-mode)
:defer t
:init
(setq centaur-tabs-set-icons t
centaur-tabs-gray-out-icons 'buffer
@ -24,6 +24,10 @@
;; prevents that.
centaur-tabs-cycle-scope 'tabs)
(if (daemonp)
(add-hook 'server-after-make-frame-hook #'centaur-tabs-mode)
(add-hook 'doom-first-file-hook #'centaur-tabs-mode))
:config
(add-hook! '(+doom-dashboard-mode-hook +popup-buffer-mode-hook)
(defun +tabs-disable-centaur-tabs-mode-maybe-h ()