diff options
author | Phil Hagelberg <[email protected]> | 2014-03-13 08:33:28 -0700 |
---|---|---|
committer | Phil Hagelberg <[email protected]> | 2014-03-13 08:33:28 -0700 |
commit | 83992252fe8f62e88fa44f7172dd45547e9ea47e (patch) | |
tree | 1ff155bd276ab756b592877d56b2ad171b38c465 /lib/tools/emacs | |
parent | 62603a2cba8ddbf169b38eec042f9be8ca0528ed (diff) | |
download | otp-83992252fe8f62e88fa44f7172dd45547e9ea47e.tar.gz otp-83992252fe8f62e88fa44f7172dd45547e9ea47e.tar.bz2 otp-83992252fe8f62e88fa44f7172dd45547e9ea47e.zip |
Add more file types to Emacs auto-mode-alist.
Diffstat (limited to 'lib/tools/emacs')
-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) |