Change doom/describe-module to browse module

Instead of opening its README.org, which may or may not exist.
This commit is contained in:
Henrik Lissner 2019-03-05 00:04:30 -05:00
parent f515bf5931
commit 6a4682f3f1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -182,10 +182,7 @@ current file is in, or d) the module associated with the current major mode (see
(cl-check-type module symbol) (cl-check-type module symbol)
(or (doom-module-p category module) (or (doom-module-p category module)
(error "'%s %s' isn't a valid module" category module)) (error "'%s %s' isn't a valid module" category module))
(let ((doc-path (doom-module-path category module "README.org"))) (doom-project-browse (doom-module-path category module)))
(unless (file-exists-p doc-path)
(error "There is no documentation for this module (%s)" doc-path))
(find-file doc-path)))
;;;###autoload ;;;###autoload
(defun doom/describe-active-minor-mode (mode) (defun doom/describe-active-minor-mode (mode)