Emacs : Open buffer in vertical split by default
emacs
Solution
You know that you can do this manually with C-x 3 right? So we can use this fact to learn how to add the command to do this to `.emacs`.
We just need to find out what the function is. So let's do C-h k C-x 3 to find the help for C-x 3. That shows:
C-x 3 runs the command split-window-right, which is an interactive compiled Lisp function in `window.el'.
So, open `.emacs` (C-x C-f `~/.emacs`), go to the end of the file and add:
(split-window-right)
Then save the file, restart emacs and it should work. I just tested it.
Problem
I am very very new to emacs. I want something like this. Every time I open a new buffer, it should split current winodow vertically. How should I change .emacs file. Please provide some pointers.