* Converting document from hard whitespace indentation to org-indent-mode
@ 2022-01-12 15:47 Max Brieiev
2022-01-13 0:23 ` Samuel Wales
0 siblings, 1 reply; 2+ messages in thread
From: Max Brieiev @ 2022-01-12 15:47 UTC (permalink / raw)
To: emacs-orgmode
Several of my documents use indentation to line up with the headings,
like below:
* Top level headline
paragraph
+ list item lorem ipsum
dolor sit amet
** Second level
some text
*** Third level
more text
I would like to strip leading whitespace, so that I could switch to
=org-indent-mode= to have a nice view of the document instead of using
hard whitespace indentation.
Basically I want to:
- strip leading whitespace,
- but preserve the indentation of lists and src blocks
- refill all paragraphs according to what =org-fill-paragragh= would do.
How would I do it programmatically? My current Elisp knowledge is poor.
Thanks in advance.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Converting document from hard whitespace indentation to org-indent-mode
2022-01-12 15:47 Converting document from hard whitespace indentation to org-indent-mode Max Brieiev
@ 2022-01-13 0:23 ` Samuel Wales
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Wales @ 2022-01-13 0:23 UTC (permalink / raw)
To: emacs-orgmode
i think that default has changed to your preference in recent versions
[according to ml discussions]. which, i agree with.
On 1/12/22, Max Brieiev <max.brieiev@gmail.com> wrote:
>
> Several of my documents use indentation to line up with the headings,
> like below:
>
> * Top level headline
> paragraph
> + list item lorem ipsum
> dolor sit amet
> ** Second level
> some text
> *** Third level
> more text
>
> I would like to strip leading whitespace, so that I could switch to
> =org-indent-mode= to have a nice view of the document instead of using
> hard whitespace indentation.
>
> Basically I want to:
> - strip leading whitespace,
> - but preserve the indentation of lists and src blocks
> - refill all paragraphs according to what =org-fill-paragragh= would do.
>
> How would I do it programmatically? My current Elisp knowledge is poor.
>
> Thanks in advance.
>
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-13 0:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-12 15:47 Converting document from hard whitespace indentation to org-indent-mode Max Brieiev
2022-01-13 0:23 ` Samuel Wales
Code repositories for project(s) associated with this public 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).