From: Maxim Nikulin <email@example.com> To: firstname.lastname@example.org Subject: Re: [POLL] Setting `org-adapt-indentation' to nil by default? Date: Thu, 6 May 2021 21:50:32 +0700 [thread overview] Message-ID: <email@example.com> (raw) In-Reply-To: <firstname.lastname@example.org> 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://email@example.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?
next prev parent reply other threads:[~2021-05-06 14:56 UTC|newest] Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-02 6:09 Bastien 2021-05-02 7:13 ` Tim Cross 2021-05-02 8:06 ` Jean Louis 2021-05-02 8:47 ` Tim Cross 2021-05-02 20:18 ` Jean Louis 2021-05-02 22:25 ` Tim Cross 2021-05-03 7:41 ` Kévin Le Gouguec 2021-05-03 10:15 ` Jean Louis 2021-05-02 8:56 ` Bastien 2021-05-02 8:59 ` Bastien 2021-05-02 20:24 ` Jean Louis 2021-05-02 20:21 ` Jean Louis 2021-05-02 20:22 ` Jean Louis 2021-05-02 10:07 ` Eric S Fraga 2021-05-02 15:01 ` Detlef Steuer 2021-05-02 15:44 ` Colin Baxter 2021-05-02 15:46 ` Amin Bandali 2021-05-02 18:11 ` Tom Gillespie 2021-05-02 18:19 ` Nicolas Goaziou 2021-05-02 18:48 ` Tom Gillespie 2021-05-02 19:20 ` Nicolas Goaziou 2021-05-03 10:11 ` Dr. Arne Babenhauserheide 2021-05-02 18:31 ` Jim Porter 2021-05-02 20:44 ` Kévin Le Gouguec 2021-05-03 7:33 ` Kévin Le Gouguec 2021-05-03 8:06 ` Bastien 2021-05-03 12:53 ` Kévin Le Gouguec 2021-05-03 13:40 ` Bastien 2021-05-03 14:57 ` Kévin Le Gouguec 2021-05-06 14:50 ` Maxim Nikulin [this message] 2021-05-15 20:51 ` Bastien 2021-05-19 17:02 ` [PATCH] etc/ORG-NEWS: Suggest against disabling `electric-indent-mode' Maxim Nikulin 2021-05-20 12:25 ` Bastien 2021-05-19 17:08 ` [PATCH] org-faq.org: Expand "What is the best setup for indenting?" Maxim Nikulin 2021-05-19 18:06 ` Greg Minshall 2021-05-20 15:57 ` Maxim Nikulin 2021-05-21 2:45 ` Greg Minshall 2021-05-27 16:11 ` Maxim Nikulin 2021-05-21 9:38 ` Bastien 2021-05-20 12:28 ` Bastien 2021-05-19 17:08 ` [POLL] Setting `org-adapt-indentation' to nil by default? Maxim Nikulin 2021-05-02 21:07 ` Jack Kamm 2021-05-05 7:54 ` Bastien 2021-05-06 14:13 ` Bastien 2021-05-09 16:42 ` Kévin Le Gouguec 2021-05-15 12:46 ` Bastien
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 \ --firstname.lastname@example.org' \ --email@example.com \ --firstname.lastname@example.org \ --subject='Re: [POLL] Setting `org-adapt-indentation'\'' to nil by default?' \ /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
Code repositories for project(s) associated with this 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).