On startup, I want to create an empty buffer and switch to it, but only if no file has been specified in the command line.
The closest I have is
(switch-to-buffer "untitled")
at the end of init.el
but this still creates an "untitled" buffer even when I specify a file in the command line. I don't want this because it slows things down and leaves an unneeded buffer lying around.
desktop
), the *scratch* buffer will be the first buffer you see. – Kaushal Modi Mar 17 '15 at 17:19initial-buffer-choice
. – glucas Mar 17 '15 at 17:39