bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#28124: 24.5; fundamental-mode has electric-indent-mode on by default


From: Eli Zaretskii
Subject: bug#28124: 24.5; fundamental-mode has electric-indent-mode on by default
Date: Thu, 17 Aug 2017 18:53:29 +0300

> From: Matthias Meixner <Matthias.Meixner@VERIFONE.com>
> Date: Thu, 17 Aug 2017 07:56:39 +0000
> 
> Fundamental-mode has electric-indent-mode on by default. As a result when 
> pressing return leading
> whitespace is removed which is highly unexpected in fundamental-mode.

Yes, and this is a feature.

> Globally disabling electric-indent-mode is not an option, since that would 
> also disable it for other
> modes, where it should be available (e.g. C/C++ mode).

You can disable the mode locally in the current buffer:

  M-x electric-indent-local-mode RET

(This is mentioned in the doc string of electric-indent-mode.)





reply via email to

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