File tree Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 1f52ddfe9ebd64891f14ec17efa8e2a014f8a439
2
+ refs/heads/master: 88918bbefb813745a53fc6043112751611c6d8de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change 1
- ; ; Wrapper for CodeMirror-style emacs modes. Highlighting is done by
2
- ; ; running a stateful parser (with first-class state object) over the
3
- ; ; buffer, line by line, using the output to add 'face properties, and
4
- ; ; storing the parser state at the end of each line. Indentation is
5
- ; ; done based on the parser state at the start of the line.
1
+ ; ;; cm-mode.el --- Wrapper for CodeMirror-style emacs modes
2
+
3
+ ; ; Version: 0.1.0
4
+
5
+ ; ; Highlighting is done by running a stateful parser (with first-class
6
+ ; ; state object) over the buffer, line by line, using the output to
7
+ ; ; add 'face properties, and storing the parser state at the end of
8
+ ; ; each line. Indentation is done based on the parser state at the
9
+ ; ; start of the line.
6
10
7
11
(eval-when-compile (require 'cl ))
8
12
163
167
(cm-schedule-work 0.05 )))))
164
168
165
169
(defun cm-do-some-work ()
166
- (save-excursion
170
+ (save-excursion
167
171
(condition-case cnd (cm-do-some-work-inner)
168
172
(error (print cnd) (error cnd)))))
169
173
174
178
175
179
; ; Entry function
176
180
181
+ ;;;### autoload
177
182
(defun cm-mode (mode )
178
183
(set (make-local-variable 'cm-cur-mode ) mode)
179
184
(set (make-local-variable 'cm-worklist ) (list (copy-marker 1 )))
184
189
(cm-schedule-work 0.05 ))
185
190
186
191
(provide 'cm-mode )
192
+
193
+ ; ;; <name>.el ends here
Original file line number Diff line number Diff line change
1
+ ; ;; rust-mode.el --- A major emacs mode for editing Rust source code
2
+
3
+ ; ; Version: 0.1.0
4
+ ; ; Package-Requires: ((cm-mode "0.1.0"))
5
+
1
6
(require 'cm-mode )
2
7
(require 'cc-mode )
3
8
277
282
((eq (rust-context-align cx) t ) (+ (rust-context-column cx) (if closing -1 0 )))
278
283
(t (+ base (if closing 0 unit)))))))
279
284
285
+ ;;;### autoload
280
286
(define-derived-mode rust-mode fundamental-mode " Rust"
281
287
" Major mode for editing Rust source files."
282
288
(set-syntax-table rust-syntax-table)
293
299
(define-key rust-mode-map " {" 'rust-electric-brace )
294
300
295
301
(provide 'rust-mode )
302
+
303
+ ; ;; rust-mode.el ends here
You can’t perform that action at this time.
0 commit comments