reddit / emacs

emacsclient can't rename tab-bar tab on startup

ixlxixl ยท 2022-07-31 20:57
I have the following code snippet and it works fine when launching emacs the normal way. But if using emacsclient with the daemon, then `(tab-bar-rename-tab "main")` doesn't seem to get executed. Edit: I think I made it work now by utilizing the `server-after-make-frame-hook`. (use-package tab-bar :hook (server-after-make-frame . (lambda () (tab-bar-rename-tab "main"))) :config (tab-bar-mode +1) (tab-bar-history-mode +1))