Revise comments & docstring

This commit is contained in:
Henrik Lissner 2019-06-18 14:18:01 +02:00
parent 3589ce4c5b
commit f2d7c5625d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 4 additions and 3 deletions

View file

@ -108,6 +108,7 @@ Uses `+workspaces-main' to determine the name of the main workspace."
(add-hook 'persp-mode-hook #'+workspaces|init-persp-mode)
(defun +workspaces|leave-nil-perspective (&rest _)
"Ensure that Doom is never in the nil perspective."
(when (string= (+workspace-current-name) persp-nil-name)
(+workspace-switch (or (if (+workspace-p +workspace--last) +workspace--last)
(car (+workspace-list-names))