I would like an emacsclient frame with a specific name to open when I log into my computer. I tried adding emacsclient -e '(select-frame (make-frame (quote ((name . "scratchemacsframe")))))'
to my startup applications, but the frame never opens. If I try running this command from the CLI before opening any other frames, I get this error: *ERROR*: Unknown terminal type
. Poking around on Google suggests that this is because the emacs daemon doesn't yet know where to draw the frame. If I change the command to add a -d $DISPLAY
, my frame opens, but I also get a second undesired frame that opens to *scratch*
for some reason.
How can I make emacsclient open a single frame with a specified name before any other frames are opened?
set-frame-name
?(set-frame-name NAME)
-- Set the name of the selected frame to NAME. When called interactively, prompt for the name of the frame. On text terminals, the frame name is displayed on the mode line. On graphical displays, it is displayed on the frame's title bar.