Display package homepage in doom/help-packages

If possible.
This commit is contained in:
Henrik Lissner 2019-05-19 20:30:09 -04:00
parent 9f63d94b13
commit 1df35c166a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -431,13 +431,12 @@ If prefix arg is present, refresh the cache."
(re-search-forward "\n\n" nil t)) (re-search-forward "\n\n" nil t))
(package--print-help-section "Source") (package--print-help-section "Source")
(insert (insert (pcase (ignore-errors (doom-package-backend package))
(pcase (ignore-errors (doom-package-backend package)) (`elpa (concat "[M]ELPA " (doom--package-url package)))
(`elpa "[M]ELPA") (`quelpa (format "QUELPA %s" (prin1-to-string (doom-package-prop package :recipe))))
(`quelpa (format "QUELPA %s" (prin1-to-string (doom-package-prop package :recipe)))) (`emacs "Built-in")
(`emacs "Built-in") (_ (symbol-file package)))
(_ (symbol-file package))) "\n")
"\n")
(when (assq package doom-packages) (when (assq package doom-packages)
(package--print-help-section "Modules") (package--print-help-section "Modules")