branch: elpa/rust-mode
commit bda009dae6b5b11cb683068430e0764a1f05a50e
Author: Max Penet <[email protected]>
Commit: Max Penet <[email protected]>
add auto-mode-alist to autoloads
---
rust-mode.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/rust-mode.el b/rust-mode.el
index 6c118da..2166f14 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -21,9 +21,6 @@
(c-populate-syntax-table table)
table))
-(add-to-list 'auto-mode-alist '("\\.rs$" . rust-mode))
-(add-to-list 'auto-mode-alist '("\\.rc$" . rust-mode))
-
(defun make-rust-state ()
(vector 'rust-token-base
(list (vector 'top (- rust-indent-unit) nil nil nil))
@@ -300,6 +297,11 @@
(define-key rust-mode-map "}" 'rust-electric-brace)
(define-key rust-mode-map "{" 'rust-electric-brace)
+;;;###autoload
+(progn
+ (add-to-list 'auto-mode-alist '("\\.rs$" . rust-mode))
+ (add-to-list 'auto-mode-alist '("\\.rc$" . rust-mode)))
+
(provide 'rust-mode)
;;; rust-mode.el ends here