From abfb3196cbb3f5307b6989657ddf5d93f7514297 Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Wed, 2 Feb 2022 16:57:52 +0100 Subject: Mention how to turn off `electric-indent-mode` Fixes https://github.com/rust-lang/rust-mode/issues/437 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index aeeb987..1e841da 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3