Refactor core-popups; improve popups/persp-mode integration
This commit is contained in:
parent
55e4434d77
commit
5d5c3bf92e
3 changed files with 91 additions and 62 deletions
|
@ -5,7 +5,9 @@
|
|||
(defun doom-popup-p (&optional window)
|
||||
"Return t if WINDOW is a popup. Uses current window if WINDOW is omitted."
|
||||
(let ((window (or window (selected-window))))
|
||||
(and window (buffer-local-value 'doom-popup-mode (window-buffer window)))))
|
||||
(and window
|
||||
(or (window-parameter window 'popup)
|
||||
(buffer-local-value 'doom-popup-mode (window-buffer window))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-popup-buffer (buffer &rest plist)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue