Skip to content

Commit

Permalink
Add custom group for rust-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahChalmer committed Sep 6, 2013
1 parent 76e95a0 commit 1ac7c5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/etc/emacs/rust-mode.el
Expand Up @@ -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)))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1ac7c5c

Please sign in to comment.