Use frame's buffer-predicate instead of doom/{next,previous}-buffer
doom/{next,previous}-buffer was implemented so that these commands could skip over unreal buffers, and land us on either a real one or the dashboard. Using the frame's buffer-predicate parameter accomplishes exactly this, natively.
This commit is contained in:
parent
c9e8be1f60
commit
2989296521
5 changed files with 27 additions and 26 deletions
|
@ -48,6 +48,12 @@
|
|||
"Return non-nil if buffer is in workspace (defaults to current workspace)."
|
||||
(persp-contain-buffer-p buffer (or workspace (+workspace-current)) nil))
|
||||
|
||||
;;;###autoload
|
||||
(defun +workspace-alien-buffer-p (buffer)
|
||||
"Return non-nil if BUFFER isn't a member of the current workspace."
|
||||
(and (get-buffer-window buffer)
|
||||
(not (+workspace-contains-buffer-p buffer))))
|
||||
|
||||
|
||||
;; --- Getters ----------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue