summaryrefslogtreecommitdiff
path: root/cm-mode.el
diff options
context:
space:
mode:
authorMax Penet <max.penet@gmail.com>2012-08-13 09:04:41 +0200
committerBrian Anderson <banderson@mozilla.com>2012-08-13 13:53:26 -0700
commit5afc8abfcce6f4e6556f87796393f1489acf446e (patch)
tree43291508e9cf1e2de0e0b208ab62f2669104dc89 /cm-mode.el
parentde813531231df26624c7d1a13768baceb0ad4510 (diff)
downloadrust-mode-5afc8abfcce6f4e6556f87796393f1489acf446e.tar.gz
initial stab at making rust-mode elpa friendly
Diffstat (limited to 'cm-mode.el')
-rw-r--r--cm-mode.el19
1 files changed, 13 insertions, 6 deletions
diff --git a/cm-mode.el b/cm-mode.el
index 469bded..9b6a58f 100644
--- a/cm-mode.el
+++ b/cm-mode.el
@@ -1,8 +1,12 @@
-;; Wrapper for CodeMirror-style emacs modes. Highlighting is done by
-;; running a stateful parser (with first-class state object) over the
-;; buffer, line by line, using the output to add 'face properties, and
-;; storing the parser state at the end of each line. Indentation is
-;; done based on the parser state at the start of the line.
+;;; cm-mode.el --- Wrapper for CodeMirror-style emacs modes
+
+;; Version: 0.1.0
+
+;; Highlighting is done by running a stateful parser (with first-class
+;; state object) over the buffer, line by line, using the output to
+;; add 'face properties, and storing the parser state at the end of
+;; each line. Indentation is done based on the parser state at the
+;; start of the line.
(eval-when-compile (require 'cl))
@@ -163,7 +167,7 @@
(cm-schedule-work 0.05)))))
(defun cm-do-some-work ()
- (save-excursion
+ (save-excursion
(condition-case cnd (cm-do-some-work-inner)
(error (print cnd) (error cnd)))))
@@ -174,6 +178,7 @@
;; Entry function
+;;;###autoload
(defun cm-mode (mode)
(set (make-local-variable 'cm-cur-mode) mode)
(set (make-local-variable 'cm-worklist) (list (copy-marker 1)))
@@ -184,3 +189,5 @@
(cm-schedule-work 0.05))
(provide 'cm-mode)
+
+;;; <name>.el ends here