[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible to set block switches "globally"?
From: |
Ihor Radchenko |
Subject: |
Re: Possible to set block switches "globally"? |
Date: |
Sat, 04 May 2024 12:19:05 +0000 |
João Pedro <jpedrodeamorim@gmail.com> writes:
>> :number-lines (yes|no|continue) as João proposes
>> :indent (preserve|align|???) not sure about naming
>> :labels (link|keep|remove|remove-whitespace)
>> :label-format regexp-string
>
> Yeah, as Ihor pointed out I did forget about -i, though I'm not really
> sure what that does.
I think that we can take names from the parser internals:
:number-lines
:preserve-indent
:retain-labels
:use-labels
:label-fmt
:preserve-indent is a per-block setting of
`org-src-preserve-indentation' variable.
> I tried searching for where switches are parsed in the code, but
> couldn't find much. Could you provide me with some pointers and files I
> should be looking at?
`org-element-src-block-parser' and `org-element-example-block-parser'.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>