aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/erlang.el
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-11-08 09:47:56 +0100
committerDan Gudmundsson <[email protected]>2016-11-08 09:47:56 +0100
commit755b3c2c41012a54c7177aa88d9fc98f342fa5ff (patch)
tree3ce634b5ecf6edd2337ce105c986a60371438482 /lib/tools/emacs/erlang.el
parentf294715ec476e2396a61b743c219312dafe6eed9 (diff)
parentcec4b8ac171686b53ff730c23d90ef25039e6791 (diff)
downloadotp-755b3c2c41012a54c7177aa88d9fc98f342fa5ff.tar.gz
otp-755b3c2c41012a54c7177aa88d9fc98f342fa5ff.tar.bz2
otp-755b3c2c41012a54c7177aa88d9fc98f342fa5ff.zip
Merge branch 'leoliu/tools/emacs-erldoc/PR-1197/OTP-14018' into maint
* leoliu/tools/emacs-erldoc/PR-1197/OTP-14018: New commands to ease looking up OTP documentation
Diffstat (limited to 'lib/tools/emacs/erlang.el')
-rw-r--r--lib/tools/emacs/erlang.el5
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)))