Skip to content

Commit 3638b8b

Browse files
committed
---
yaml --- r: 29871 b: refs/heads/incoming c: d0c57c3 h: refs/heads/master i: 29869: 092ae37 29867: e1f9437 29863: e87658a 29855: df4e018 v: v3
1 parent 7065ab7 commit 3638b8b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 527c21c10e9dbde0e24a8099ad8fdf832e4de4e8
9+
refs/heads/incoming: d0c57c39d2da44dcd59507ad64b58237dbe7d6d2
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/etc/emacs/rust-mode.el

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
(c-populate-syntax-table table)
2222
table))
2323

24-
(add-to-list 'auto-mode-alist '("\\.rs$" . rust-mode))
25-
(add-to-list 'auto-mode-alist '("\\.rc$" . rust-mode))
26-
2724
(defun make-rust-state ()
2825
(vector 'rust-token-base
2926
(list (vector 'top (- rust-indent-unit) nil nil nil))
@@ -300,6 +297,11 @@
300297
(define-key rust-mode-map "}" 'rust-electric-brace)
301298
(define-key rust-mode-map "{" 'rust-electric-brace)
302299

300+
;;;###autoload
301+
(progn
302+
(add-to-list 'auto-mode-alist '("\\.rs$" . rust-mode))
303+
(add-to-list 'auto-mode-alist '("\\.rc$" . rust-mode)))
304+
303305
(provide 'rust-mode)
304306

305307
;;; rust-mode.el ends here

0 commit comments

Comments
 (0)