Bastien, thank you for the fixes of electric-indent-mode, there is no
feeling that it is necessary to choose between broken and inconvenient
configuration options any more.
On 03/05/2021 15:06, Bastien wrote:
This might help: https://orgmode.org/worg/org-faq.html#indentation
"What is the best setup for indenting?"
I think, the something like the following should be added to the answer.
It was not obvious for me at first. Gustavo explained it in
https://orgmode.org/list/87blfxv966....@gmail.com/
Do not try to avoid or ignore indentation of heading body or properties
drawer determined by current org-adapt-indentation and
electric-indent-mode by pressing C-j instead of RET (or vice versa). It
is unsure way. When you refile heading or change its level (promote or
demote it), you may find that despite your efforts, elements are
indented accordingly to Org mode current settings instead of your visual
preferences. It is better to customize org-adapt-indentation.
I would suggest to mention =#+STARTUP: indent= as well as a visual
alternative to (org-adapt-indentation t) that actually cancels its effect.
Maybe it should be stressed in the ORG-NEWS file that previously there
were suggestion to set electric-indent-local-mode to -1 for Org buffers.
Now it is hopefully not necessary due to bug fixes and changed defaults.
Finally, a case that might be fixed.
- item 1
+ item 2
+← cursor is here
In this case TAB allows to cycle through indentation variants and it is
great. Unfortunately just after RET (there are only some spaces on the
new line) TAB fixes indentation as continuation of previous item and
does not allow to shift left before marker is added. It is confusing at
first since e.g. python mode is more liberal.
Is there equivalent of TAB for indentation cycle when some item text is
added since TAB is busy for switching of item visibility?