Save initial window config explicitly

The switching command used to do seemingly extraneous saving before and
after loading a different window config which was discarded recently.
This became obvious after an option to clean up the window config after
switching to it was introduced.  Closes #27.
This commit is contained in:
Vasilij Schneidermann
2015-04-28 19:35:38 +02:00
parent 5a82ba7af8
commit c596093010

View File

@ -218,7 +218,9 @@ If FRAME is nil, use current frame. TYPE can be any of
(defun eyebrowse-init (&optional frame)
"Initialize Eyebrowse for the current frame."
(eyebrowse--set 'last-slot 1 frame)
(eyebrowse--set 'current-slot 1 frame))
(eyebrowse--set 'current-slot 1 frame)
(eyebrowse--insert-in-window-config-list
(eyebrowse--current-window-config 1)))
(defun eyebrowse--update-window-config-element (new-element)
"Replace the old element with NEW-ELEMENT in the window config list.