[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to preserve empty headings
From: |
Titus von der Malsburg |
Subject: |
Re: How to preserve empty headings |
Date: |
Mon, 30 Nov 2020 19:38:11 +0100 |
User-agent: |
mu4e 1.5.5; emacs 28.0.50 |
On 2020-11-30 Mon 19:25, Diego Zamboni wrote:
>>
>> I’m aware of several workarounds and this one is perhaps the best.
>> However, I’d prefer if RET would just work as expected. Org sometimes
>> inserts extra material on RET which I think is okay (e.g. indentation), but
>> is there any precedent, in Org or Emacs more broadly, for RET deleting
>> text? It seems very counter-intuitive to me.
>>
>
> Could it be that the space is being deleted not when you press RET but
> when you save the file? I don't see any space deletion when entering an
> empty headline, but in my config, whitespace at end of lines is deleted
> on save. In Doom Emacs this is enabled by default, and even before I was
> using =delete-trailing-whitespace= as part of my =before-save-hook=.
> --Diego
The space is deleted immediately. But the fact that it’s not happening on your
system perhaps means that there *is* a setting that prevents it. The question
is: which?
By the way, I’m using the master branch from
https://code.orgmode.org/bzg/org-mode.git as installed by straight.el.
Titus
- How to preserve empty headings, Titus von der Malsburg, 2020/11/30
- Re: How to preserve empty headings, Berry, Charles, 2020/11/30
- Re: How to preserve empty headings, Titus von der Malsburg, 2020/11/30
- Re: How to preserve empty headings, Diego Zamboni, 2020/11/30
- Re: How to preserve empty headings,
Titus von der Malsburg <=
- Re: How to preserve empty headings, Tom Gillespie, 2020/11/30
- Re: How to preserve empty headings, Diego Zamboni, 2020/11/30
- Re: How to preserve empty headings, Berry, Charles, 2020/11/30
- Re: How to preserve empty headings, Titus von der Malsburg, 2020/11/30