Re: [PATCH][9.4] Mention org-adapt-indentation as escape hatch in ORG-NEWS

2020-12-12 Thread Bastien
Hi Kévin,

Kévin Le Gouguec  writes:

> If it's not too late for this to make it into 27.2, I think this could
> make dealing with the electric-indent-mode kerfuffle easier for
> unsuspecting users.

Applied, thanks,

-- 
 Bastien



[PATCH][9.4] Mention org-adapt-indentation as escape hatch in ORG-NEWS

2020-12-11 Thread Kévin Le Gouguec
If it's not too late for this to make it into 27.2, I think this could
make dealing with the electric-indent-mode kerfuffle easier for
unsuspecting users.

>From 829a98c8ee4ba8b914b9ac81bae510ae6f2820aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= 
Date: Fri, 11 Dec 2020 19:47:37 +0100
Subject: [PATCH] Offer alternative to disabling electric-indent-mode

* etc/ORG-NEWS (=RET= and =C-j= now obey ~electric-indent-mode~):
Mention alternative values for org-adapt-indentation.
---
 etc/ORG-NEWS | 4 
 1 file changed, 4 insertions(+)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 0ed626fb7..b8c6e9d3b 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -234,6 +234,10 @@ explicitly:
 (add-hook 'org-mode-hook (lambda () (electric-indent-local-mode -1)))
 #+end_src
 
+Alternatively, if you wish to keep =RET= as the "smart-return" key,
+but dislike Org's default indentation of sections, you may prefer to
+customize ~org-adapt-indentation~ to either =nil= or ='headline-data=.
+
 *** =ob-C.el= allows the inclusion of non-system header files
 
 In C and C++ blocks, ~:includes~ arguments that do not start with a
-- 
2.29.2