added saving of window layout to emacs