diff --git a/src/etc/emacs/rust-mode.el b/src/etc/emacs/rust-mode.el index f81f6bb6181..a1b8423ae3b 100644 --- a/src/etc/emacs/rust-mode.el +++ b/src/etc/emacs/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))