aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2010-05-26 10:27:36 +0000
committerErlang/OTP <[email protected]>2010-05-26 10:27:36 +0000
commit36a59bf8581a53b2da411db6ab9d92e014787c2a (patch)
tree5dc7807778ff1b897d0d8fcf0a2661883bf3b98a /lib/tools
parent9ac8fb78f4463a3a26b0c40c7f5f5aa90898f605 (diff)
parent9480662b19d045e6243400c6df6c54728ff9fb19 (diff)
downloadotp-36a59bf8581a53b2da411db6ab9d92e014787c2a.tar.gz
otp-36a59bf8581a53b2da411db6ab9d92e014787c2a.tar.bz2
otp-36a59bf8581a53b2da411db6ab9d92e014787c2a.zip
Merge branch 'mh/escript-erlang-mode' into dev
* mh/escript-erlang-mode: Associate files using interpreter "escript" with Erlang mode
Diffstat (limited to 'lib/tools')
-rw-r--r--lib/tools/emacs/erlang-start.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tools/emacs/erlang-start.el b/lib/tools/emacs/erlang-start.el
index 542e81f24c..bbcea3e46a 100644
--- a/lib/tools/emacs/erlang-start.el
+++ b/lib/tools/emacs/erlang-start.el
@@ -90,6 +90,11 @@
(or (assoc (car b) auto-mode-alist)
(setq auto-mode-alist (cons b auto-mode-alist))))
+;;
+;; Associate files using interpreter "escript" with Erlang mode.
+;;
+
+(add-to-list 'interpreter-mode-alist (cons "escript" 'erlang-mode))
;;
;; Ignore files ending in ".jam", ".vee", and ".beam" when performing