emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 69811ea 052/486: Add custom group for rust-mode


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 69811ea 052/486: Add custom group for rust-mode
Date: Sat, 7 Aug 2021 09:24:46 -0400 (EDT)

branch: elpa/rust-mode
commit 69811ea101e93bd1b51329c13506736981b751ee
Author: Micah Chalmer <micah@micahchalmer.net>
Commit: Micah Chalmer <micah@micahchalmer.net>

    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

[Prev in Thread] Current Thread [Next in Thread]