From c5960930108e69c7dbc67836e6ce1e6029a6cfe5 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Tue, 28 Apr 2015 19:35:38 +0200 Subject: [PATCH] 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. --- eyebrowse.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eyebrowse.el b/eyebrowse.el index 4c21e14..f90fb21 100644 --- a/eyebrowse.el +++ b/eyebrowse.el @@ -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.