New command: doom/popup-raise

This commit is contained in:
Henrik Lissner 2017-09-25 02:59:13 +02:00
parent 6de185409f
commit bc1d2480b0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -230,6 +230,16 @@ prevent the popup(s) from messing up the UI (or vice versa)."
(when (/= count 0) (when (/= count 0)
(other-window count))))) (other-window count)))))
;;;###autoload
(defun doom/popup-raise (&optional window)
"Turn a popup window into a normal window."
(interactive)
(let ((window (or window (selected-window))))
(unless (doom-popup-p window)
(user-error "Not a valid popup to raise"))
(with-selected-window window
(doom-popup-mode -1))))
;;;###autoload ;;;###autoload
(defun doom-popup-move (direction) (defun doom-popup-move (direction)
"Move a popup window to another side of the frame, in DIRECTION, which can be "Move a popup window to another side of the frame, in DIRECTION, which can be