Change doom/describe-module to browse module
Instead of opening its README.org, which may or may not exist.
This commit is contained in:
parent
f515bf5931
commit
6a4682f3f1
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue