         (when  (plist-get plist :when))
         (match (plist-get plist :match))
         (init-form (plist-get plist :init))
+        (hook-form (plist-get plist :hook))
         (keymap-sym (intern (format "%s-map" name))))
     `(progn
        (defvar ,keymap-sym (make-sparse-keymap)


  :init FORM -- FORM to run the first time this project mode is enabled.

Relevant: `doom-project-hook'."
  (declare (indent 1))
  (let ((modes (plist-get plist :modes))

       (define-minor-mode ,name
         "A project minor mode."
         :init-value nil
         :keymap ,keymap-sym
         ,hook-form)
       ,(when (or modes match files when)
          `(associate! ,name
             :modes ,modes
