From e39142b15ccf9115af7741bd42781ab1217dd32f Mon Sep 17 00:00:00 2001 From: Uwe Dauernheim Date: Fri, 26 Apr 2013 00:06:57 +0300 Subject: Allow customization of indent offset --- rust-mode.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rust-mode.el') 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)) -- cgit v1.2.3