           (unless (eq major-mode '+doom-dashboard-mode)
             (+doom-dashboard-mode))
           (erase-buffer)
-          (insert "\n")
           (run-hooks '+doom-dashboard-functions)))
       (+doom-dashboard|resize)
       (+doom-dashboard|detect-project)

dashboard. These functions take no arguments and the dashboard buffer is current
while they run.")

;; (defvar +doom-dashboard-banner-file "e.png"
;;   "The path to the image file to be used in on the dashboard. The path is
;; relative to modules/ui/doom-dashboard/banners/. If nil, always use the ASCII
;; banner.")

;; (defvar +doom-dashboard-banner-dir (concat (DIR!) "banners/")
;;   "Where to look for `+doom-dashboard-banner-file'.")

(defvar +doom-dashboard-inhibit-refresh nil
  "If non-nil, the doom buffer won't be refreshed.")

                                           (point)))
            (insert (make-string
                     (max 0 (- (/ (window-height (get-buffer-window)) 2)
                               (round (/ (+ (count-lines (point-min) (point-max))
                                            (car +doom-dashboard-banner-padding))
                                         2))))
                     ?\n))))))))

(defun +doom-dashboard|detect-project (&rest _)
  "Check for a `last-project-root' parameter in the perspective, and set the
