From 83992252fe8f62e88fa44f7172dd45547e9ea47e Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Thu, 13 Mar 2014 08:33:28 -0700 Subject: Add more file types to Emacs auto-mode-alist. --- lib/tools/emacs/erlang.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/tools/emacs/erlang.el') 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) -- cgit v1.2.3