Skip to content

Commit 7a9037b

Browse files
committed
Allow customization of indent offset
1 parent 5f13e9c commit 7a9037b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/etc/emacs/rust-mode.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
:require 'rust-mode
2424
:group 'rust-mode)
2525

26-
(defvar rust-indent-unit 4)
26+
(defcustom rust-indent-unit 4
27+
"Amount of offset per level of indentation"
28+
:type 'integer
29+
:require 'rust-mode
30+
: group 'rust-mode)
31+
2732
(defvar rust-syntax-table (let ((table (make-syntax-table)))
2833
(c-populate-syntax-table table)
2934
table))

0 commit comments

Comments
 (0)