mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
feature/workspaces: kill buffers when killing workspace
This commit is contained in:
@ -112,13 +112,13 @@ success, nil otherwise."
|
|||||||
(persp-rename new-name (+workspace-get name)))
|
(persp-rename new-name (+workspace-get name)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +workspace-delete (name)
|
(defun +workspace-delete (name &optional inhibit-kill-p)
|
||||||
"Delete the workspace denoted by TARGET, which can be the name of a
|
"Delete the workspace denoted by TARGET, which can be the name of a
|
||||||
perspective or its hash table."
|
perspective or its hash table."
|
||||||
(when (equal name persp-nil-name)
|
(when (equal name persp-nil-name)
|
||||||
(error "Can't delete main workspace"))
|
(error "Can't delete main workspace"))
|
||||||
(+workspace-get name) ;; error checking
|
(+workspace-get name) ;; error checking
|
||||||
(persp-remove-by-name name))
|
(persp-kill name inhibit-kill-p))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +workspace-switch (name)
|
(defun +workspace-switch (name)
|
||||||
|
Reference in New Issue
Block a user