From ea1f72e8755c67cce4d3683dd4d4cc9af6ad89bf Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 20 Jun 2024 17:54:29 -0400 Subject: [PATCH] fix(tabs): reload centaur-tabs when changing themes Fix: #6503 --- modules/ui/tabs/config.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/ui/tabs/config.el b/modules/ui/tabs/config.el index 8ff2dc590..7b63edcb3 100644 --- a/modules/ui/tabs/config.el +++ b/modules/ui/tabs/config.el @@ -35,6 +35,12 @@ (when (centaur-tabs-mode-on-p) (centaur-tabs-local-mode)))) + (add-hook! 'doom-load-theme-hook + (defun +tabs-reload-centaur-tabs-h () + (when (bound-and-true-p centaur-tabs-mode) + (centaur-tabs-mode -1) + (centaur-tabs-mode +1)))) + ;; HACK: `centaur-tabs-buffer-update-groups' is both expensive and called too ;; frequently. There really is no reason to call it more than 10 times per ;; second, as buffers rarely change groups more frequently than that.