diff options
| author | Max Penet <max.penet@gmail.com> | 2012-08-13 09:04:41 +0200 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-13 13:53:26 -0700 |
| commit | 5afc8abfcce6f4e6556f87796393f1489acf446e (patch) | |
| tree | 43291508e9cf1e2de0e0b208ab62f2669104dc89 /rust-mode.el | |
| parent | de813531231df26624c7d1a13768baceb0ad4510 (diff) | |
| download | rust-mode-5afc8abfcce6f4e6556f87796393f1489acf446e.tar.gz | |
initial stab at making rust-mode elpa friendly
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rust-mode.el b/rust-mode.el index 328b9a8..440f609 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1,3 +1,8 @@ +;;; rust-mode.el --- A major emacs mode for editing Rust source code + +;; Version: 0.1.0 +;; Package-Requires: ((cm-mode "0.1.0")) + (require 'cm-mode) (require 'cc-mode) @@ -277,6 +282,7 @@ ((eq (rust-context-align cx) t) (+ (rust-context-column cx) (if closing -1 0))) (t (+ base (if closing 0 unit))))))) +;;;###autoload (define-derived-mode rust-mode fundamental-mode "Rust" "Major mode for editing Rust source files." (set-syntax-table rust-syntax-table) @@ -293,3 +299,5 @@ (define-key rust-mode-map "{" 'rust-electric-brace) (provide 'rust-mode) + +;;; rust-mode.el ends here |
