diff options
| author | Max Penet <max.penet@gmail.com> | 2012-08-16 10:06:18 +0200 |
|---|---|---|
| committer | Max Penet <max.penet@gmail.com> | 2012-08-16 10:06:18 +0200 |
| commit | bda009dae6b5b11cb683068430e0764a1f05a50e (patch) | |
| tree | 2a920562bbd385a37767b797fdd16d5e15d5b82f /rust-mode.el | |
| parent | 8b8d1ea1e882c0ca82b6528f35e6e7464db0975b (diff) | |
| download | rust-mode-bda009dae6b5b11cb683068430e0764a1f05a50e.tar.gz | |
add auto-mode-alist to autoloads
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 8 |
1 files 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 |
