]> git.lizzy.rs Git - rust.git/commit
rust-mode: Default rust-indent-offset to 4, not default-tab-width
authorAnders Kaseorg <andersk@mit.edu>
Wed, 28 Aug 2013 22:09:02 +0000 (18:09 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Wed, 28 Aug 2013 22:09:02 +0000 (18:09 -0400)
commit60e84809f0377d022a700b8e81456c52d0aebbc4
tree647b34333c9708ad145fdceb6d5aecdf6ef5548b
parent9c33ef5a7c24abe258be5c130dec1c77e72de86b
rust-mode: Default rust-indent-offset to 4, not default-tab-width

default-tab-width is standardly 8, but most programmers and style
guides prefer an indentation width smaller than that.  Rust itself
uses 4 space indents.  Most other Emacs modes define the indentation
width as 4 or 2 spaces, independently of the width of a Tab character.
Depending on default-tab-width makes especially little sense for
rust-mode because it sets indent-tabs-mode to nil.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
src/etc/emacs/rust-mode.el