 (use-package magit :ensure t
   :config
   (setq magit-status-buffer-switch-function #'switch-to-buffer)
+  (fullframe magit-status magit-mode-quit-window)
   :bind ("C-x g" . magit-status))
 
 ;; Use vc-ediff as default.

(when (boundp 'use-dialog-box)
  (setq use-dialog-box nil))

(use-package fullframe :ensure t)

(ar/after-load 'magit
  (fullframe magit-status magit-mode-quit-window))

(ar/after-load 'paradox
  (fullframe paradox-list-packages paradox-quit-and-close))

(ar/after-load 'ibuffer
  (fullframe ibuffer ibuffer-quit))


;; Quickly undo pop-ups or other window configurations.
(use-package winner :ensure t
  :init (winner-mode 1)
  :bind (("<S-escape>" . winner-redo)
         ("<escape>" . winner-undo)))

(setq winner-boring-buffers
      (append winner-boring-buffers '("*helm M-x*"
                                      "helm mini*"
