diff options
author | Case Duckworth | 2023-01-20 13:17:06 -0600 |
---|---|---|
committer | Case Duckworth | 2023-01-20 13:17:06 -0600 |
commit | 14a68f5d9810bae86d727de180f847c58075ea86 (patch) | |
tree | ddfe7a7007d430362b3446dcc5c9e727258e08a2 | |
parent | meh (diff) | |
download | emacs-14a68f5d9810bae86d727de180f847c58075ea86.tar.gz emacs-14a68f5d9810bae86d727de180f847c58075ea86.zip |
Do something with tabs if /not/ running a daemon
-rw-r--r-- | init.el | 13 |
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 |