summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Chalmer <micah@micahchalmer.net>2013-09-03 23:54:39 -0400
committerMicah Chalmer <micah@micahchalmer.net>2013-09-06 01:02:20 -0400
commit69811ea101e93bd1b51329c13506736981b751ee (patch)
tree8c249821ff871167ae1cf03af9ab8dd15d84bbc7
parent9640fe89c1e15c869500cf1057fd40c7b1c4fd10 (diff)
downloadrust-mode-69811ea101e93bd1b51329c13506736981b751ee.tar.gz
Add custom group for rust-mode
-rw-r--r--rust-mode.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el
index d7c4142..8651fb6 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -30,8 +30,11 @@
table))
+(defgroup rust-mode nil "Support for Rust code.")
+
(defcustom rust-indent-offset 4
- "*Indent Rust code by this number of spaces.")
+ "*Indent Rust code by this number of spaces."
+ :group 'rust-mode)
(defun rust-paren-level () (nth 0 (syntax-ppss)))
(defun rust-in-str-or-cmnt () (nth 8 (syntax-ppss)))
@@ -215,6 +218,7 @@
;;;###autoload
(define-derived-mode rust-mode rust-parent-mode "Rust"
"Major mode for Rust code."
+ :group 'rust-mode
;; Basic syntax
(set-syntax-table rust-mode-syntax-table)