 ;;;###autoload
 (defun doom/popups-p ()
   "Whether there is a popup window open and alive somewhere."
-  (and doom-last-popup
-       (window-live-p (get-buffer-window doom-last-popup))))
+  (and doom-last-popup (window-live-p (get-buffer-window doom-last-popup))))
 
 ;;;###autoload
 (defmacro doom/popup-save (&rest body)

    (define-key map [remap evil-window-vsplit] 'ignore)
    map)
   "Active keymap in popup windows.")

(advice-add 'doom/evil-window-move :around 'doom*popup-window-move)


(defun doom*popup-init (orig-fn &rest args)
  "Enable `doom-popup-mode' in every popup window and returns the window."
  (let ((window (apply orig-fn args)))
    (with-selected-window window
      (doom-popup-mode +1))
    ;; NOTE orig-fn returns a window, so `doom*popup-init' must too
    window))
