ui/workspaces: use add-hook! for inline hook

This commit is contained in:
Henrik Lissner 2019-08-17 16:04:41 -04:00
parent 2a3f95f615
commit 58fb9faf3a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -209,7 +209,7 @@ stored in `persp-save-dir'.")
(push (cons buf-name base-buf-name) (push (cons buf-name base-buf-name)
+workspaces--indirect-buffers-to-restore) +workspaces--indirect-buffers-to-restore)
nil))) nil)))
(add-hook 'persp-after-load-state-functions (add-hook! 'persp-after-load-state-functions
(defun +workspaces-reload-indirect-buffers-h (&rest _) (defun +workspaces-reload-indirect-buffers-h (&rest _)
(dolist (ibc +workspaces--indirect-buffers-to-restore) (dolist (ibc +workspaces--indirect-buffers-to-restore)
(cl-destructuring-bind (buffer-name . base-buffer-name) ibc (cl-destructuring-bind (buffer-name . base-buffer-name) ibc