aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-04-02 17:58:07 +0200
committerFredrik Gustafsson <[email protected]>2013-04-02 17:58:07 +0200
commitdd1e9a44c31ff10f8ac1260d751b266c512b11e2 (patch)
tree66f0022685585fc88c9b8ef86396b6f26e4e2bf9 /lib
parent6c04513724fa301a449b6b16e1f7a88fa02a8a0e (diff)
parent1347e55f96714c4b9bd3eb1d378393c1592ab9ac (diff)
downloadotp-dd1e9a44c31ff10f8ac1260d751b266c512b11e2.tar.gz
otp-dd1e9a44c31ff10f8ac1260d751b266c512b11e2.tar.bz2
otp-dd1e9a44c31ff10f8ac1260d751b266c512b11e2.zip
Merge branch 'mh/emacs-package/OTP-10999' into maint
* mh/emacs-package/OTP-10999: erlang-mode: Add autoload cookies for file extension associations
Diffstat (limited to 'lib')
-rw-r--r--lib/tools/emacs/erlang-start.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tools/emacs/erlang-start.el b/lib/tools/emacs/erlang-start.el
index bbcea3e46a..e1dc86621e 100644
--- a/lib/tools/emacs/erlang-start.el
+++ b/lib/tools/emacs/erlang-start.el
@@ -83,6 +83,7 @@
;; Associate files extensions ".erl" and ".hrl" with Erlang mode.
;;
+;;;###autoload
(let ((a '("\\.erl\\'" . erlang-mode))
(b '("\\.hrl\\'" . erlang-mode)))
(or (assoc (car a) auto-mode-alist)
@@ -94,6 +95,7 @@
;; Associate files using interpreter "escript" with Erlang mode.
;;
+;;;###autoload
(add-to-list 'interpreter-mode-alist (cons "escript" 'erlang-mode))
;;
@@ -101,6 +103,7 @@
;; file completion.
;;
+;;;###autoload
(let ((erl-ext '(".jam" ".vee" ".beam")))
(while erl-ext
(let ((cie completion-ignored-extensions))