 ;; file completion.
 ;;
 
+;;;###autoload
 (let ((erl-ext '(".jam" ".vee" ".beam")))
   (while erl-ext
     (let ((cie completion-ignored-extensions))

;; Associate files using interpreter "escript" with Erlang mode.
;; 

(add-to-list 'interpreter-mode-alist (cons "escript" 'erlang-mode))

;;

;; Associate files extensions ".erl" and ".hrl" with Erlang mode.
;;

;;;###autoload
(let ((a '("\\.erl\\'" . erlang-mode))
      (b '("\\.hrl\\'" . erlang-mode)))
  (or (assoc (car a) auto-mode-alist)
