branch: elpa/rust-mode
commit 69811ea101e93bd1b51329c13506736981b751ee
Author: Micah Chalmer <[email protected]>
Commit: Micah Chalmer <[email protected]>

    Add custom group for rust-mode
---
 rust-mode.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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)

Reply via email to