mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add +workspace-contains-buffer-p
This commit is contained in:
@ -81,6 +81,13 @@ perspectives."
|
|||||||
"Get the name of the currently active workspace."
|
"Get the name of the currently active workspace."
|
||||||
(safe-persp-name (get-current-persp)))
|
(safe-persp-name (get-current-persp)))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun +workspace-contains-buffer-p (&optional buffer workspace)
|
||||||
|
"Return non-nil if buffer is in workspace (defaults to current workspace)."
|
||||||
|
(unless workspace
|
||||||
|
(setq workspace (+workspace-current)))
|
||||||
|
(persp-contain-buffer-p buffer workspace nil))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +workspace-load (name)
|
(defun +workspace-load (name)
|
||||||
"Loads and inserts a single workspace (named NAME) into the current session.
|
"Loads and inserts a single workspace (named NAME) into the current session.
|
||||||
|
Reference in New Issue
Block a user