diff options
| author | Christophe Troestler <Christophe.Troestler@umons.ac.be> | 2022-02-02 16:57:52 +0100 |
|---|---|---|
| committer | Christophe Troestler <Christophe.Troestler@umons.ac.be> | 2022-02-02 16:57:52 +0100 |
| commit | abfb3196cbb3f5307b6989657ddf5d93f7514297 (patch) | |
| tree | 601555058506ffab717b471a0d26fa85bccf66ef /README.md | |
| parent | 2da2e7f08a83fbec381c8604d3e00c4ee2c02855 (diff) | |
| download | rust-mode-abfb3196cbb3f5307b6989657ddf5d93f7514297.tar.gz | |
Mention how to turn off `electric-indent-mode`
Fixes https://github.com/rust-lang/rust-mode/issues/437
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -118,6 +118,12 @@ which forces indentation to always use spaces. (lambda () (setq indent-tabs-mode nil))) ``` +Since Emacs ≥ 24.4, [`electric-indent-mode`][] is turned on by +default. If you do not like it, call `(electric-indent-mode 0)` in +`rust-mode-hook`. + +[`electric-indent-mode`]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Indent-Convenience.html + ### Code formatting The `rust-format-buffer` function will format your code with |
