Skip to content

Commit 41a543b

Browse files
authored
Merge pull request #440 from Chris00/electric-indent
Mention how to turn off `electric-indent-mode`
2 parents 2da2e7f + abfb319 commit 41a543b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ which forces indentation to always use spaces.
118118
(lambda () (setq indent-tabs-mode nil)))
119119
```
120120

121+
Since Emacs ≥ 24.4, [`electric-indent-mode`][] is turned on by
122+
default. If you do not like it, call `(electric-indent-mode 0)` in
123+
`rust-mode-hook`.
124+
125+
[`electric-indent-mode`]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Indent-Convenience.html
126+
121127
### Code formatting
122128

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

0 commit comments

Comments
 (0)