[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:27:56 +0800 |
On Wed, Jul 14, 2021 at 7:31 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > Date: Wed, 14 Jul 2021 10:18:12 +0800
> >
> > I tried with `emacs -Q' and find that the <RET> will always left justify a
> > line.
> >
> > Any hints for this behavior?
>
> electric-indent-mode
According to your comment above and the notes on
<https://emacs.stackexchange.com/questions/30147/disabling-electric-indent-mode-for-one-mode-latex-mode-only>,
I customized the following function to turn off it for the LaTeX mode
provided by AUCTex:
```
(defun remove-electric-indent-mode ()
(progn
(electric-indent-local-mode -1)))
(add-hook 'LaTeX-mode-hook 'remove-electric-indent-mode)
```
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