emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentat


From: Sebastian Miele
Subject: Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentation'
Date: Sun, 03 Nov 2019 22:25:45 +0000
User-agent: mu4e 1.3.5; emacs 26.3

Hi Nicolas,

Nicolas Goaziou <address@hidden> writes:

> Sebastian Miele <address@hidden> writes:
>
>> Subject: [PATCH] Respect buffer-local value of
>>  `org-edit-src-content-indentation'
>>
>> * lisp/org-src.el (org-src--contents-for-write-back): Use the
>> potentially buffer-local value of `org-edit-src-content-indentation'
>> from the source buffer instead of that from the editing buffer.
>
> Thank you.
>
> Would you mind explaining your use case?

The Org default of org-edit-src-content-indentation is 2. I like that
value and leave it that way. Worg's root .dir-locals sets it to 0
buffer-locally in at least many Worg's Org files. Hence, when I edit an
src block in a Worg file, the value of org-edit-src-content-indentation
in the edit buffer is 2. But the correct value in that case is 0.

Best wishes
Sebastian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]