Skip to content

Commit bb9bbd2

Browse files
tspiterimookid
authored andcommitted
readme: recommend setting indent-tabs-mode to nil
1 parent 06b3b60 commit bb9bbd2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
- [Installation via MELPA](#installation-via-melpa)
99
- [Manual Installation](#manual-installation)
10+
- [Indentation](#indentation)
1011
- [rustfmt](#rustfmt)
1112
- [Tests](#tests)
1213
- [Other useful packages](#other-useful-packages)
@@ -44,6 +45,16 @@ Add this to your init.el:
4445
(autoload 'rust-mode "rust-mode" nil t)
4546
```
4647

48+
# Indentation
49+
50+
The Rust style guide recommends spaces for indentation; to follow the
51+
recommendation add this to your init.el:
52+
53+
```elisp
54+
(add-hook 'rust-mode-hook
55+
(lambda () (setq indent-tabs-mode nil)))
56+
```
57+
4758
# rustfmt
4859

4960
The `rust-format-buffer` function will format your code with

0 commit comments

Comments
 (0)