summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2023-01-20 13:17:06 -0600
committerCase Duckworth2023-01-20 13:17:06 -0600
commit14a68f5d9810bae86d727de180f847c58075ea86 (patch)
treeddfe7a7007d430362b3446dcc5c9e727258e08a2
parentmeh (diff)
downloademacs-14a68f5d9810bae86d727de180f847c58075ea86.tar.gz
emacs-14a68f5d9810bae86d727de180f847c58075ea86.zip
Do something with tabs if /not/ running a daemon
-rw-r--r--init.el13
1 files 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 @@
205 ;; (add-to-list 'tab-bar-format 'tab-bar-format-menu-bar) 205 ;; (add-to-list 'tab-bar-format 'tab-bar-format-menu-bar)
206 (add-to-list 'tab-bar-format 'tab-bar-format-align-right :append) 206 (add-to-list 'tab-bar-format 'tab-bar-format-align-right :append)
207 (add-to-list 'tab-bar-format 'tab-bar-format-global :append) 207 (add-to-list 'tab-bar-format 'tab-bar-format-global :append)
208 (when (daemonp) 208 (if (daemonp)
209 (add-hook 'server-after-make-frame-hook 209 (add-hook 'server-after-make-frame-hook
210 (defun after-frame@tab-bar () 210 (defun after-frame@tab-bar ()
211 (tab-bar-mode) 211 (tab-bar-mode)
212 (remove-hook 'server-after-make-frame-hook 212 (remove-hook 'server-after-make-frame-hook
213 #'after-frame@tab-bar))))) 213 #'after-frame@tab-bar)))
214 (run-with-idle-timer 2 nil #'tab-bar-mode)))
214 215
215 216
216;;; Applications 217;;; Applications