Is there a way to have emacs open up, say, 3 tabs, upon start up ?
I am tired of all the time having to open them manually and then split window also.
I would like to automate this via setting in my init.el file.
Maybe someone can help?
You could use desktop-save for this. Start Emacs and manually set up the window configuration that you want (e.g. call M-x split-window-right
twice, followed by C-x +
). Then do M-x desktop-save
and choose some directory to store the .emacs.desktop
file (for example "~").
Then in your init file put (desktop-read "~")
(or the directory that you chose previously) followed by (global-tab-line-mode)
(or (tab-bar-mode)
if you prefer that functionality) to open Emacs with tabs and your preferred window configuration.
In your init file, you can add code to make the window configuration the way you want. Say, three windows, equally balanced:
(split-window-right)
(split-window-right)
(balance-windows)