From cec4b8ac171686b53ff730c23d90ef25039e6791 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Fri, 7 Oct 2016 19:37:19 +0800 Subject: 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 --- lib/tools/emacs/erlang-start.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/tools/emacs/erlang-start.el') 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,8 +78,22 @@ (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. ;; -- cgit v1.2.3