diff options
author | Leo Liu <[email protected]> | 2016-10-07 19:37:19 +0800 |
---|---|---|
committer | Leo Liu <[email protected]> | 2016-10-25 16:58:19 +0800 |
commit | cec4b8ac171686b53ff730c23d90ef25039e6791 (patch) | |
tree | 810828ab824814b9df9e3f80db2177e0cb1adf3b /lib/tools/emacs/erlang.el | |
parent | 16b6c991cc841ced6be466eca774dba1188f8640 (diff) | |
download | otp-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.el')
-rw-r--r-- | lib/tools/emacs/erlang.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el index cc22903e7f..40f0bb7f80 100644 --- a/lib/tools/emacs/erlang.el +++ b/lib/tools/emacs/erlang.el @@ -1440,6 +1440,11 @@ Other commands: (erlang-skel-init) (when (fboundp 'tempo-use-tag-list) (tempo-use-tag-list 'erlang-tempo-tags)) + (when (and (fboundp 'add-function) (fboundp 'erldoc-eldoc-function)) + (or eldoc-documentation-function + (setq-local eldoc-documentation-function #'ignore)) + (add-function :before-until (local 'eldoc-documentation-function) + #'erldoc-eldoc-function)) (run-hooks 'erlang-mode-hook) (if (zerop (buffer-size)) (run-hooks 'erlang-new-file-hook))) |