emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [nongnu] elpa/rust-mode 41a543b94e 2/2: Merge pull request #440 from


From: Stefan Monnier
Subject: Re: [nongnu] elpa/rust-mode 41a543b94e 2/2: Merge pull request #440 from Chris00/electric-indent
Date: Wed, 02 Feb 2022 16:01:19 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> +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

`electric-indent-mode` is a global mode that affects all buffers, so it
doesn't make much sense to call it in a major mode hook.
Either call (electric-indent-local-mode -1) in the mode hook, or call
(electric-indent-mode 0) at top-level.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]