diff options
| author | Uwe Dauernheim <uwe@dauernheim.net> | 2013-04-26 00:06:57 +0300 |
|---|---|---|
| committer | Uwe Dauernheim <uwe@dauernheim.net> | 2013-04-26 00:06:57 +0300 |
| commit | e39142b15ccf9115af7741bd42781ab1217dd32f (patch) | |
| tree | 4cbfd54ff08d2d363ff67be4962ff749ab2bcbde /rust-mode.el | |
| parent | 7b320664633b96edab3f7c3258f2f2deaf8f5a89 (diff) | |
| download | rust-mode-e39142b15ccf9115af7741bd42781ab1217dd32f.tar.gz | |
Allow customization of indent offset
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 7 |
1 files changed, 6 insertions, 1 deletions
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)) |
