 `doom/packages-autoremove'. "
   (interactive)
   (if noninteractive
-      (ignore-errors
+      (progn
+        (message "Reloading...")
         (require 'server)
-        (unless (server-eval-at "server" '(doom/reload))
-          (message "No active emacs session running to reload")))
+        (unless (ignore-errors (server-eval-at "server" '(doom/reload)))
+          (message "Recompiling")
+          (doom/recompile)))
     (doom-initialize t)
     (doom/recompile)
     (message "Reloaded %d packages" (length doom--package-load-path))))

                  (reverse (directory-files-recursively doom-core-dir "\\.el$"))
                  (reverse (directory-files-recursively doom-modules-dir "\\.el$"))))))
    (dolist (file targets)
      (when (byte-compile-file file)
        (message "+ Recompiling %s" file)
        (cl-incf n)))
    (if (= (length targets) 0)
        (message "Nothing to recompile")


(defun doom--display-benchmark ()
  (message "Loaded %s packages in %.03fs"
           (eval-when-compile (length doom--package-load-path))
           (setq doom-init-time (float-time (time-subtract after-init-time before-init-time)))))


