From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: New line and trailing whitespaces
Date: Sat, 20 Apr 2024 17:16:37 +0300 [thread overview]
Message-ID: <86o7a486gq.fsf@gnu.org> (raw)
In-Reply-To: <86sezg87oh.fsf@gnu.org> (message from Eli Zaretskii on Sat, 20 Apr 2024 16:50:22 +0300)
> Date: Sat, 20 Apr 2024 16:50:22 +0300
> From: Eli Zaretskii <eliz@gnu.org>
>
> > Date: Sat, 20 Apr 2024 14:10:34 +0200
> > From: Ergus <spacibba@aol.com>
> >
> > When the cursor is in an empty line and I press enter, the cursor jumps
> > to the new line and indents (similar to what emacs does) but also
> > removes the trailing whitespaces in the previous/leaving line.
>
> Emacs does that since a long time ago (unless I misunderstand what you
> mean).
Just to be more specific: it's the electric-indent-mode, which is ON
by default in Emacs since v24, that does this. So if you don't see
this when you press RET, just turning electric-indent-mode should be
all you need.
next prev parent reply other threads:[~2024-04-20 14:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <kcaicxrup2f3usy37v4aupgu7uvmifnxkeyc2hx5n5qpqnuj7b.ref@okar6momrmhs>
2024-04-20 12:10 ` New line and trailing whitespaces Ergus
2024-04-20 13:50 ` Eli Zaretskii
2024-04-20 14:16 ` Eli Zaretskii [this message]
2024-04-21 1:12 ` Ergus
2024-04-21 5:23 ` Eli Zaretskii
2024-04-21 21:05 ` Ergus
2024-04-22 5:39 ` Eli Zaretskii
2024-04-22 12:22 ` Ergus
2024-04-23 8:06 ` Eli Zaretskii
2024-04-23 15:38 ` Ergus
2024-04-23 16:19 ` Eli Zaretskii
2024-04-24 2:41 ` Ergus
2024-04-24 7:05 ` Eli Zaretskii
2024-04-24 14:48 ` Ergus
2024-04-24 15:45 ` Eli Zaretskii
2024-04-22 12:34 ` Ergus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86o7a486gq.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.