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:
@ -218,7 +218,9 @@ If FRAME is nil, use current frame. TYPE can be any of
|
|||||||
(defun eyebrowse-init (&optional frame)
|
(defun eyebrowse-init (&optional frame)
|
||||||
"Initialize Eyebrowse for the current frame."
|
"Initialize Eyebrowse for the current frame."
|
||||||
(eyebrowse--set 'last-slot 1 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)
|
(defun eyebrowse--update-window-config-element (new-element)
|
||||||
"Replace the old element with NEW-ELEMENT in the window config list.
|
"Replace the old element with NEW-ELEMENT in the window config list.
|
||||||
|
|||||||
Reference in New Issue
Block a user