   "The version number of Erlang mode.")
 
 (defcustom erlang-root-dir nil
-  "The directory where the Erlang system is installed.
-The name should not contain the trailing slash.
+  "The directory where the Erlang man pages are installed. The
+name should not contain a trailing slash.
 
 Should this variable be nil, no manual pages will show up in the
-Erlang mode menu."
+Erlang mode menu unless man pages have been downloaded by Erlang
+mode (see below).
+
+You can download the Erlang man pages automatically by placing
+the following lines in your Emacs init file or by executing the
+Emacs command `M-x erlang-man-download-ask RET' (the download URL
+can be customized with the Emacs variable
+erlang-man-download-url):
+
+    (require 'erlang)
+    (erlang-man-download)
+
+"
   :group 'erlang
   :type '(restricted-sexp :match-alternatives (stringp 'nil))
   :safe (lambda (val) (or (eq nil val) (stringp val))))

      (setq dir (cond ((nth 2 (car dir-list))
                       ;; Relative to `erlang-root-dir'.
                       (and (stringp erlang-root-dir)
                            (erlang-man-dir (nth 1 (car dir-list)))))
                      (t
                       ;; Absolute
                       (nth 1 (car dir-list)))))

For example:
    (setq erlang-root-dir \"/usr/local/erlang\")

Alternatively, you can download the Erlang man pages
automatically by placing the following lines in your Emacs init
file or by executing the Emacs command `M-x
erlang-man-download-ask RET' (the download URL can be customized
with the Emacs variable erlang-man-download-url):

    (require 'erlang)
    (erlang-man-download)

After installing the line/lines in your Emacs init file or after
running the command `M-x erlang-man-download-ask RET', kill and
restart Emacs, or restart Erlang mode with the command `M-x
erlang-mode RET'.")))

;; Skeleton code:

