We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b3b60 commit bb9bbd2Copy full SHA for bb9bbd2
README.md
@@ -7,6 +7,7 @@
7
8
- [Installation via MELPA](#installation-via-melpa)
9
- [Manual Installation](#manual-installation)
10
+- [Indentation](#indentation)
11
- [rustfmt](#rustfmt)
12
- [Tests](#tests)
13
- [Other useful packages](#other-useful-packages)
@@ -44,6 +45,16 @@ Add this to your init.el:
44
45
(autoload 'rust-mode "rust-mode" nil t)
46
```
47
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
58
# rustfmt
59
60
The `rust-format-buffer` function will format your code with
0 commit comments