   (run-hooks 'doom-post-init-hook))
 
 (defun doom|run-all-startup-hooks ()
-  "Run all startup Emacs hooks. Meant to follow running Emacs in a vanilla
-session, with a different init.el, like so:
+  "Run all startup Emacs hooks. Meant to be executed after starting Emacs with
+-q or -Q, for example:
 
   emacs -Q -l init.el -f doom|run-all-startup-hooks"
   (run-hooks 'after-init-hook 'delayed-warnings-hook


  (defalias 'use-package-normalize/:after-call
    'use-package-normalize-symlist)

  (defvar doom--deferred-packages-alist ()
    "TODO")

  (defun use-package-handler/:after-call (name-symbol _keyword hooks rest state)
    (let ((fn (intern (format "doom|transient-hook--load-%s" name-symbol)))


(autoload 'use-package "use-package-core" nil 'macro)

;; Adds the :after-call custom keyword to `use-package' (and consequently,
;; `def-package!'). :after-call takes a symbol ro list of symbols. These symbols
;; can be functions to hook variables.
;;
;;   (use-package X :after-call find-file-hook)
;;
;; This will load X on the first invokation of `find-file-hook' (then it will
;; remove itself from the hook).
(defvar doom--deferred-packages-alist ())
(after! use-package-core
  (add-to-list 'use-package-deferring-keywords :after-call nil #'eq)

