branch: elpa/rust-mode
commit e39142b15ccf9115af7741bd42781ab1217dd32f
Author: Uwe Dauernheim <[email protected]>
Commit: Uwe Dauernheim <[email protected]>
Allow customization of indent offset
---
rust-mode.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/rust-mode.el b/rust-mode.el
index f81f6bb..4ccb18e 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -23,7 +23,12 @@
:require 'rust-mode
:group 'rust-mode)
-(defvar rust-indent-unit 4)
+(defcustom rust-indent-unit 4
+ "Amount of offset per level of indentation"
+ :type 'integer
+ :require 'rust-mode
+ : group 'rust-mode)
+
(defvar rust-syntax-table (let ((table (make-syntax-table)))
(c-populate-syntax-table table)
table))