Skip to content

Commit

Permalink
Add autoloads
Browse files Browse the repository at this point in the history
  • Loading branch information
davidshepherd7 committed Jun 12, 2017
1 parent fdabfe7 commit 502d593
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpful.el
Original file line number Diff line number Diff line change
Expand Up @@ -541,20 +541,23 @@ For example, \"(some-func FOO &optional BAR)\"."
(symbol-name sym-here))))))

;; TODO: it would be nice to support variables too.
;;;###autoload
(defun helpful-function (symbol)
"Show help for function named SYMBOL."
(interactive
(list (helpful--read-symbol "Function:" #'functionp)))
(switch-to-buffer (helpful--buffer symbol))
(helpful-update))

;;;###autoload
(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))

;;;###autoload
(defun helpful-macro (symbol)
"Show help for macro named SYMBOL."
(interactive
Expand Down

0 comments on commit 502d593

Please sign in to comment.