aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/erlang-start.el
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2016-10-07 19:37:19 +0800
committerLeo Liu <[email protected]>2016-10-25 16:58:19 +0800
commitcec4b8ac171686b53ff730c23d90ef25039e6791 (patch)
tree810828ab824814b9df9e3f80db2177e0cb1adf3b /lib/tools/emacs/erlang-start.el
parent16b6c991cc841ced6be466eca774dba1188f8640 (diff)
downloadotp-cec4b8ac171686b53ff730c23d90ef25039e6791.tar.gz
otp-cec4b8ac171686b53ff730c23d90ef25039e6791.tar.bz2
otp-cec4b8ac171686b53ff730c23d90ef25039e6791.zip
New commands to ease looking up OTP documentation
- erldoc-browse: open the manual entry for an MFA in the browser - erldoc-apropos: list MFAs containing a substring - erldoc-browse-topic: open user guides in the browser
Diffstat (limited to 'lib/tools/emacs/erlang-start.el')
-rw-r--r--lib/tools/emacs/erlang-start.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/tools/emacs/erlang-start.el b/lib/tools/emacs/erlang-start.el
index f9a6d24b2c..160057e179 100644
--- a/lib/tools/emacs/erlang-start.el
+++ b/lib/tools/emacs/erlang-start.el
@@ -78,9 +78,23 @@
(autoload 'erlang-find-tag-other-window "erlang"
"Like `find-tag-other-window'. Capable of retreiving Erlang modules.")
+;;
+;; Declare functions in "erlang-edoc.el".
+;;
+
(autoload 'erlang-edoc-mode "erlang-edoc" "Toggle Erlang-Edoc mode on or off." t)
;;
+;; Declare functions in "erldoc.el".
+;;
+
+(autoload 'erldoc-browse "erldoc" "\n\n(fn MFA)" t nil)
+(autoload 'erldoc-browse-topic "erldoc" "\n\n(fn TOPIC)" t nil)
+(autoload 'erldoc-apropos "erldoc" "\n\n(fn PATTERN)" t nil)
+(autoload 'erldoc-eldoc-function "erldoc" "\
+A function suitable for `eldoc-documentation-function'.\n\n(fn)" nil nil)
+
+;;
;; Associate files extensions ".erl" and ".hrl" with Erlang mode.
;;