From 62603a2cba8ddbf169b38eec042f9be8ca0528ed Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Thu, 13 Mar 2014 00:53:28 -0700 Subject: Add Emacs autoloads for .erl and .app.src. --- lib/tools/emacs/erlang.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/tools') 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) -- cgit v1.2.3 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') 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 From d2734c1829b92213ef9749219a1a882e6c37a810 Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Thu, 13 Mar 2014 11:44:58 -0700 Subject: Activate Emacs erlang-mode for .app files inside ebin directory. --- lib/tools/emacs/erlang.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tools') diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el index 95ab1a9a0b..9bccfaab95 100644 --- a/lib/tools/emacs/erlang.el +++ b/lib/tools/emacs/erlang.el @@ -1417,7 +1417,7 @@ Other commands: ;;;###autoload (dolist (r '("\\.erl$" "\\.app\\.src$" "\\.escript" - "\\.hrl$" "\\.xrl$" "\\.yrl" )) + "\\.hrl$" "\\.xrl$" "\\.yrl" "/ebin/.+\\.app")) (add-to-list 'auto-mode-alist (cons r 'erlang-mode))) (defun erlang-syntax-table-init () -- cgit v1.2.3