Add custom group for rust-mode

This commit is contained in:
Micah Chalmer 2013-09-03 23:54:39 -04:00
parent 76e95a0264
commit 1ac7c5cc5a

View File

@ -30,8 +30,11 @@
table)) table))
(defgroup rust-mode nil "Support for Rust code.")
(defcustom rust-indent-offset 4 (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-paren-level () (nth 0 (syntax-ppss)))
(defun rust-in-str-or-cmnt () (nth 8 (syntax-ppss))) (defun rust-in-str-or-cmnt () (nth 8 (syntax-ppss)))
@ -215,6 +218,7 @@
;;;###autoload ;;;###autoload
(define-derived-mode rust-mode rust-parent-mode "Rust" (define-derived-mode rust-mode rust-parent-mode "Rust"
"Major mode for Rust code." "Major mode for Rust code."
:group 'rust-mode
;; Basic syntax ;; Basic syntax
(set-syntax-table rust-mode-syntax-table) (set-syntax-table rust-mode-syntax-table)