Henrik Lissner
2025-08-09 22:32:33 +02:00
parent 708cf08a74
commit a1121acc94
13 changed files with 30 additions and 42 deletions

View File

@@ -606,7 +606,7 @@ This be hooked to `projectile-after-switch-project-hook'."
(funcall +workspaces-switch-project-function proot))))))
;;;###autoload
(defun +workspaces-save-tab-bar-data-h (_)
(defun +workspaces-save-tab-bar-data-h (&rest _)
"Save the current workspace's tab bar data."
(when (get-current-persp)
(set-persp-parameter
@@ -622,7 +622,7 @@ This be hooked to `projectile-after-switch-project-hook'."
(frameset-filter-tabs (tab-bar-tabs) nil nil t))))
;;;###autoload
(defun +workspaces-load-tab-bar-data-h (_)
(defun +workspaces-load-tab-bar-data-h (&rest _)
"Restores the tab bar data of the workspace we have just switched to."
(tab-bar-tabs-set (persp-parameter 'tab-bar-tabs))
(setq tab-bar-closed-tabs (persp-parameter 'tab-bar-closed-tabs))