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

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

Re: The <RET> will always left justify a line.


From: Hongyi Zhao
Subject: Re: The <RET> will always left justify a line.
Date: Wed, 14 Jul 2021 21:51:51 +0800

On Wed, Jul 14, 2021 at 9:40 PM Stefan Monnier via Users list for the
GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Hongyi Zhao [2021-07-14 10:18:12] wrote:
> > I tried with `emacs -Q' and find that the <RET> will always left
> > justify a line.
>
> That is not true.  The behavior will depend on the major mode
> (basically by default RET will first reindent the current line (in most
> major modes, anyway)).
>
> > Any hints for this behavior?
>
> My crystal ball suggests that you're using the wrong major mode.

But disable the `electric-indent-local-mode' really does the trick for
a specific buffer.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province



reply via email to

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