aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorMagnus Henoch <[email protected]>2013-03-22 19:17:13 +0000
committerMagnus Henoch <[email protected]>2013-03-22 19:17:13 +0000
commit1347e55f96714c4b9bd3eb1d378393c1592ab9ac (patch)
tree7cac7f6ddd8d9b5790887ca41e598f2225c4cf8c /lib/tools
parentf285ee66678ae8761dc82b5ba0c023dd759091fc (diff)
downloadotp-1347e55f96714c4b9bd3eb1d378393c1592ab9ac.tar.gz
otp-1347e55f96714c4b9bd3eb1d378393c1592ab9ac.tar.bz2
otp-1347e55f96714c4b9bd3eb1d378393c1592ab9ac.zip
erlang-mode: Add autoload cookies for file extension associations
The autoload cookies are used when erlang-mode is installed as an Emacs package. In this case, erlang-start will not be loaded at Emacs startup; only the forms marked with ;;;###autoload will be extracted and made available.
Diffstat (limited to 'lib/tools')
-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))