[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rust-mode 5afc8ab 015/486: initial stab at making rust-mod
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rust-mode 5afc8ab 015/486: initial stab at making rust-mode elpa friendly |
Date: |
Sat, 7 Aug 2021 09:24:38 -0400 (EDT) |
branch: elpa/rust-mode
commit 5afc8abfcce6f4e6556f87796393f1489acf446e
Author: Max Penet <max.penet@gmail.com>
Commit: Brian Anderson <banderson@mozilla.com>
initial stab at making rust-mode elpa friendly
---
cm-mode.el | 19 +++++++++++++------
rust-mode.el | 8 ++++++++
2 files changed, 21 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
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
- [nongnu] branch elpa/rust-mode created (now 494d59f), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 8b8d1ea 022/486: fix indentation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode c3c5f1c 025/486: emacs mode: include use as a keyword, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 4c1eab5 036/486: rewrite rust-mode to use font-lock-mode and emacs builtin syntax analysis, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 12480f9 045/486: One indent after open paren with no argument, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 2765de7 050/486: Allow indenting to align struct fields after curly brace, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode e9b1bfe 006/486: Add 'do' to rust-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode a25cc60 005/486: More keyword paring and migration in runtime, docs, code modes., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode fb23ccc 003/486: emacs: Make 'mut' a keyword, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode de81353 014/486: Merge pull request #3185 from megakorre/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 5afc8ab 015/486: initial stab at making rust-mode elpa friendly,
ELPA Syncer <=
- [nongnu] elpa/rust-mode 7ce29ed 016/486: proper package footer, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 38940ff 027/486: rust-mode: Add 'ref' keyword, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 9f9dec0 028/486: rust-mode.el uses the 'cl macros, so it should actually require them, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 1076b9c 035/486: Note incompatibility with global-whitespace-mode., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode e976207 029/486: emacs mode: Highlight 'foo as a lifetime, not a character constant., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode f962be4 038/486: rust-mode: make indentation customizable, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 5488368 039/486: compilation error regexp specific to rustc., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 0a81930 041/486: extend file regexp to match files with embedded spaces., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 6a6dc4e 042/486: fix typo in rust-mode.el, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 5b34e59 053/486: Add paragraph fill and auto-fill for multi-line comments, ELPA Syncer, 2021/08/07