diff options
-rw-r--r-- | lib/tools/emacs/erlang.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el index cd6ba7d230..95ab1a9a0b 100644 --- a/lib/tools/emacs/erlang.el +++ b/lib/tools/emacs/erlang.el @@ -1416,10 +1416,9 @@ Other commands: (run-hooks 'after-change-major-mode-hook))) ;;;###autoload -(add-to-list 'auto-mode-alist '("\\.erl$" . erlang-mode)) - -;;;###autoload -(add-to-list 'auto-mode-alist '("\\.app\\.src$" . erlang-mode)) +(dolist (r '("\\.erl$" "\\.app\\.src$" "\\.escript" + "\\.hrl$" "\\.xrl$" "\\.yrl" )) + (add-to-list 'auto-mode-alist (cons r 'erlang-mode))) (defun erlang-syntax-table-init () (if (null erlang-mode-syntax-table) |