From 0d330f7a7e879b6ec49a294c9c6672e6a44eb47e Mon Sep 17 00:00:00 2001 From: Nikita Bloshchanevich Date: Sat, 12 Dec 2020 12:34:32 +0100 Subject: [PATCH] `doom/help-modules': C-u -> browse directory If called with a C-u prefix, `doom/help-modules' now browses the module's directory instead of opening its documentation. This exposes the VISIT-DIR argument to `interactive' use. --- core/autoload/help.el | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index 4f95ed11a..96b918c53 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -351,13 +351,15 @@ module derived from a `featurep!' or `require!' call, c) the module that the current file is in, or d) the module associated with the current major mode (see `doom--help-major-mode-module-alist')." (interactive - (mapcar #'intern - (split-string - (completing-read "Describe module: " - (doom--help-modules-list) - nil t nil nil - (doom--help-current-module-str)) - " " t))) + (nconc + (mapcar #'intern + (split-string + (completing-read "Describe module: " + (doom--help-modules-list) + nil t nil nil + (doom--help-current-module-str)) + " " t)) + (list current-prefix-arg))) (cl-check-type category symbol) (cl-check-type module symbol) (cl-destructuring-bind (module-string path)