aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Hagelberg <[email protected]>2014-03-13 00:53:28 -0700
committerPhil Hagelberg <[email protected]>2014-03-13 00:53:28 -0700
commit62603a2cba8ddbf169b38eec042f9be8ca0528ed (patch)
treec237189590d455b320c1ccaa7c4d2a8ae6dcf800
parent8acc644e162bad52f7ab81c76c0cad15628e4f3d (diff)
downloadotp-62603a2cba8ddbf169b38eec042f9be8ca0528ed.tar.gz
otp-62603a2cba8ddbf169b38eec042f9be8ca0528ed.tar.bz2
otp-62603a2cba8ddbf169b38eec042f9be8ca0528ed.zip
Add Emacs autoloads for .erl and .app.src.
-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 c395d22356..cd6ba7d230 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -1415,6 +1415,11 @@ Other commands:
(if (boundp 'after-change-major-mode-hook)
(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))
(defun erlang-syntax-table-init ()
(if (null erlang-mode-syntax-table)