* Re: [nongnu] elpa/rust-mode 41a543b94e 2/2: Merge pull request #440 from Chris00/electric-indent
[not found] ` <20220202165834.3ED67C009A7@vcs2.savannah.gnu.org>
@ 2022-02-02 21:01 ` Stefan Monnier
0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2022-02-02 21:01 UTC (permalink / raw)
To: brotzeit; +Cc: emacs-devel
> +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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-02 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <164382111362.23232.9150246010235392612@vcs2.savannah.gnu.org>
[not found] ` <20220202165834.3ED67C009A7@vcs2.savannah.gnu.org>
2022-02-02 21:01 ` [nongnu] elpa/rust-mode 41a543b94e 2/2: Merge pull request #440 from Chris00/electric-indent Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).