From 7a9037bfde84b5c0fd458b298297946f92750e96 Mon Sep 17 00:00:00 2001 From: Uwe Dauernheim Date: Fri, 26 Apr 2013 00:06:57 +0300 Subject: [PATCH 1/2] Allow customization of indent offset --- src/etc/emacs/rust-mode.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/etc/emacs/rust-mode.el b/src/etc/emacs/rust-mode.el index f81f6bb6181..4ccb18e589f 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)) From d314090b8549c6b1274d436a652c7678259d4c76 Mon Sep 17 00:00:00 2001 From: Uwe Dauernheim Date: Fri, 26 Apr 2013 14:47:15 +0300 Subject: [PATCH 2/2] Fix typo --- src/etc/emacs/rust-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/emacs/rust-mode.el b/src/etc/emacs/rust-mode.el index 4ccb18e589f..a1b8423ae3b 100644 --- a/src/etc/emacs/rust-mode.el +++ b/src/etc/emacs/rust-mode.el @@ -27,7 +27,7 @@ "Amount of offset per level of indentation" :type 'integer :require 'rust-mode - : group 'rust-mode) + :group 'rust-mode) (defvar rust-syntax-table (let ((table (make-syntax-table))) (c-populate-syntax-table table)