emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: Diego Zamboni <diego@zzamboni.org>
Cc: Org mailing list <emacs-orgmode@gnu.org>,
	Titus von der Malsburg <malsburg@posteo.de>
Subject: Re: How to preserve empty headings
Date: Mon, 30 Nov 2020 22:25:47 +0000	[thread overview]
Message-ID: <C64582CD-DDFC-4A48-8B9D-3E78CBBC084B@health.ucsd.edu> (raw)
In-Reply-To: <CAGY83Ed2h-_Fzuf4xBvc_y97_u0pTkPcvdHGvkpoyfLNNWWSCA@mail.gmail.com>



> On Nov 30, 2020, at 11:25 AM, Diego Zamboni <diego@zzamboni.org> 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 have `electric-indent-mode' set to nil.

C-j is org-return-and-maybe-indent.

RET is org-return.

If I read the docstrings correctly, org-return (thru org--newline) and org-return-and-indent-maybe both trefer to electric-indent-mode, but in opposite manner (nil vs. t).

Chuck

[rest deleted]


  reply	other threads:[~2020-11-30 22:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-30 17:21 How to preserve empty headings Titus von der Malsburg
2020-11-30 17:31 ` Berry, Charles via General discussions about Org-mode.
2020-11-30 18:14   ` Titus von der Malsburg
2020-11-30 18:25     ` Diego Zamboni
2020-11-30 18:38       ` Titus von der Malsburg
2020-11-30 19:17         ` Tom Gillespie
2020-11-30 19:25         ` Diego Zamboni
2020-11-30 22:25           ` Berry, Charles via General discussions about Org-mode. [this message]
2020-11-30 19:20       ` Titus von der Malsburg

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.orgmode.org/

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

  git send-email \
    --in-reply-to=C64582CD-DDFC-4A48-8B9D-3E78CBBC084B@health.ucsd.edu \
    --to=emacs-orgmode@gnu.org \
    --cc=ccberry@health.ucsd.edu \
    --cc=diego@zzamboni.org \
    --cc=malsburg@posteo.de \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).