In a typical Emacs session I often have only one frame open, and I have it divided into 4 windows forming a 2x2 grid with some specific buffers (files) in each window.
Every time I use ediff-buffers
to compare two buffers, Emacs takes my existing frame, and re-splits it into two windows vertically (which I can choose to hortizontal by subsequentially pressing -
). However, when I quit the ediff
session, Emacs does not automatically restore the original layout of windows in my frame.
With this my questions are:
- Is there any way to automatically restore my original layout?'
- Even better, how can I have
ediff-buffers
use a new separate frame just for theediff
session and close it automatically when I quit theediff
session?