From 6a4682f3f153adb9ebdf33af366451eb63e3768d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 5 Mar 2019 00:04:30 -0500 Subject: [PATCH] Change doom/describe-module to browse module Instead of opening its README.org, which may or may not exist. --- core/autoload/help.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index e15463960..d5983606e 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -182,10 +182,7 @@ current file is in, or d) the module associated with the current major mode (see (cl-check-type module symbol) (or (doom-module-p category module) (error "'%s %s' isn't a valid module" category module)) - (let ((doc-path (doom-module-path category module "README.org"))) - (unless (file-exists-p doc-path) - (error "There is no documentation for this module (%s)" doc-path)) - (find-file doc-path))) + (doom-project-browse (doom-module-path category module))) ;;;###autoload (defun doom/describe-active-minor-mode (mode)