Search code examples
emacsspacemacs

Vertical Split in spacemacs like emacs


I would like to open two windows in spacemacs side by side like I used to do in vanilla emacs with the following line in my .emacs file:

(add-hook 'emacs-startup-hook '2-windows-vertical-to-horizontal)

and from the terminal

emacs file1 file2

The spacemacs library was suggested to me, and I think I dig it but I cannot for the life of me figure out how to replicate this functionality in the .spacemacs file

what do I need to add and where does it need to go so that I can have my preferred configuration back?


Solution

  • put (add-hook 'emacs-startup-hook '2-windows-vertical-to-horizontal)in dotspacemacs/user-config in your .spacemacs file.it will work as you expect