aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helpful.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/helpful.el b/helpful.el
index db68d5e..9e381df 100644
--- a/helpful.el
+++ b/helpful.el
@@ -455,6 +455,13 @@ For example, \"(some-func FOO &optional BAR)\"."
(switch-to-buffer (helpful--buffer symbol))
(helpful-update))
+(defun helpful-command (symbol)
+ "Show help for interactive function named SYMBOL."
+ (interactive
+ (list (helpful--read-symbol "Command:" #'commandp)))
+ (switch-to-buffer (helpful--buffer symbol))
+ (helpful-update))
+
(defun helpful-macro (symbol)
"Show help for macro named SYMBOL."
(interactive