Re: How to preserve empty headings

2020-11-30 Thread Berry, Charles
> On Nov 30, 2020, at 11:25 AM, Diego Zamboni wrote: > > What are RET and C-j bound to? > > In my setup, RET is bound to =org-return=, which does not delete spaces, but > C-j is bound to =org-return-and-maybe-indent=, which does. So I have the > opposite behavior as yours. > Probably you

Re: How to preserve empty headings

2020-11-30 Thread Diego Zamboni
What are RET and C-j bound to? In my setup, RET is bound to =org-return=, which does not delete spaces, but C-j is bound to =org-return-and-maybe-indent=, which does. So I have the opposite behavior as yours. There were some recent changes in behavior of Org with respect to electric-indent-mode (

Re: How to preserve empty headings

2020-11-30 Thread Titus von der Malsburg
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

Re: How to preserve empty headings

2020-11-30 Thread Tom Gillespie
This is caused by elastic-indent-mode. As foretold https://lists.gnu.org/archive/html/emacs-orgmode/2020-11/msg00325.html. Tom On Mon, Nov 30, 2020 at 1:38 PM Titus von der Malsburg wrote: > > > On 2020-11-30 Mon 19:25, Diego Zamboni wrote: > >> > >> I’m aware of several workarounds and this one

Re: How to preserve empty headings

2020-11-30 Thread Titus von der Malsburg
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

Re: How to preserve empty headings

2020-11-30 Thread Diego Zamboni
> > 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 > te

Re: How to preserve empty headings

2020-11-30 Thread Titus von der Malsburg
On 2020-11-30 Mon 18:31, Berry, Charles wrote: >> On Nov 30, 2020, at 9:21 AM, Titus von der Malsburg >> wrote: >> >> >> When I start a new line with '* ' followed by RET, the space is >> automatically deleted and I’m left with a line that just has the asterisk >> (i.e. not a headline). >>

Re: How to preserve empty headings

2020-11-30 Thread Berry, Charles
> On Nov 30, 2020, at 9:21 AM, Titus von der Malsburg > wrote: > > > When I start a new line with '* ' followed by RET, the space is automatically > deleted and I’m left with a line that just has the asterisk (i.e. not a > headline). > > Unfortunately there are use cases where empty headli

How to preserve empty headings

2020-11-30 Thread Titus von der Malsburg
When I start a new line with '* ' followed by RET, the space is automatically deleted and I’m left with a line that just has the asterisk (i.e. not a headline). Unfortunately there are use cases where empty headlines make sense and they occur often in my work. One example is Beamer slides wh