unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: The <RET> will always left justify a line.
Date: Wed, 14 Jul 2021 21:51:51 +0800	[thread overview]
Message-ID: <CAGP6POKetAc9uhuUjv+7BgcGgzHzmcEbYuBobo1B=J4QdZzoOg@mail.gmail.com> (raw)
In-Reply-To: <jwvk0ltuicc.fsf-monnier+emacs@gnu.org>

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	other threads:[~2021-07-14 13:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14  2:18 The <RET> will always left justify a line Hongyi Zhao
2021-07-14 11:31 ` Eli Zaretskii
2021-07-14 13:27   ` Hongyi Zhao
2021-07-14 13:39 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-07-14 13:51   ` Hongyi Zhao [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGP6POKetAc9uhuUjv+7BgcGgzHzmcEbYuBobo1B=J4QdZzoOg@mail.gmail.com' \
    --to=hongyi.zhao@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).