File tree Expand file tree Collapse file tree 3 files changed +22
-7
lines changed
branches/incoming/src/etc/emacs Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9
- refs/heads/incoming: 1f52ddfe9ebd64891f14ec17efa8e2a014f8a439
9
+ refs/heads/incoming: 88918bbefb813745a53fc6043112751611c6d8de
10
10
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
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