From 14a68f5d9810bae86d727de180f847c58075ea86 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 20 Jan 2023 13:17:06 -0600 Subject: Do something with tabs if /not/ running a daemon --- init.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index 864ac1b..4a32071 100644 --- a/init.el +++ b/init.el @@ -205,12 +205,13 @@ ;; (add-to-list 'tab-bar-format 'tab-bar-format-menu-bar) (add-to-list 'tab-bar-format 'tab-bar-format-align-right :append) (add-to-list 'tab-bar-format 'tab-bar-format-global :append) - (when (daemonp) - (add-hook 'server-after-make-frame-hook - (defun after-frame@tab-bar () - (tab-bar-mode) - (remove-hook 'server-after-make-frame-hook - #'after-frame@tab-bar))))) + (if (daemonp) + (add-hook 'server-after-make-frame-hook + (defun after-frame@tab-bar () + (tab-bar-mode) + (remove-hook 'server-after-make-frame-hook + #'after-frame@tab-bar))) + (run-with-idle-timer 2 nil #'tab-bar-mode))) ;;; Applications -- cgit 1.4.1-21-gabe81