*** M-x winner-mode is a minor mode which saves window configurations, so you can move back to other configurations that you have recently used.