[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [POLL] Setting `org-adapt-indentation' to nil by default?
From: |
Kévin Le Gouguec |
Subject: |
Re: [POLL] Setting `org-adapt-indentation' to nil by default? |
Date: |
Mon, 03 May 2021 14:53:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Bastien <bzg@gnu.org> writes:
> Kévin Le Gouguec <kevin.legouguec@gmail.com> writes:
>
>> A fews more moles to whack, maybe:
>>
>> - RET after an ":END:" starts an indented line,
>> - "* headline RET text TAB" indents "text" (and subsequent RETs are then
>> indented).
>
> Fixed, thanks.
Great! One last snag that I can see: when inserting properties or
clocking in, the :LOGBOOK:, :PROPERTIES: and :END: lines are indented,
but the /first/ :property: or CLOCK: line remains at column 0.
I've looked briefly at org-indent-line; IIUC, those lines get caught in
this condition:
(save-excursion
(beginning-of-line 1)
(skip-chars-backward "\n")
(or (org-at-heading-p)
(org-at-drawer-p)
(org-at-planning-p)))
I'm guessing we'd need to throw some (org-at-property-p) and
(org-at-clock-log-p) guards *before* skipping backward over "\n", but I
haven't thought this through completely yet.
>> should at least write test cases for them. Will try to find the time
>> Sometime Later™.
>
> This might help: https://orgmode.org/worg/org-faq.html#indentation
Wonderful! That will definitely help, thanks.
Re: [POLL] Setting `org-adapt-indentation' to nil by default?, Jim Porter, 2021/05/02
Re: [POLL] Setting `org-adapt-indentation' to nil by default?, Kévin Le Gouguec, 2021/05/02
Re: [POLL] Setting `org-adapt-indentation' to nil by default?, Maxim Nikulin, 2021/05/06
Re: [POLL] Setting `org-adapt-indentation' to nil by default?, Bastien, 2021/05/15
[PATCH] etc/ORG-NEWS: Suggest against disabling `electric-indent-mode', Maxim Nikulin, 2021/05/19
Re: [PATCH] etc/ORG-NEWS: Suggest against disabling `electric-indent-mode', Bastien, 2021/05/20
[PATCH] org-faq.org: Expand "What is the best setup for indenting?", Maxim Nikulin, 2021/05/19
Re: [PATCH] org-faq.org: Expand "What is the best setup for indenting?", Greg Minshall, 2021/05/19
Re: [PATCH] org-faq.org: Expand "What is the best setup for indenting?", Maxim Nikulin, 2021/05/20
Re: [PATCH] org-faq.org: Expand "What is the best setup for indenting?", Greg Minshall, 2021/05/20