emacs-orgmode
[Top][All Lists]
Advanced

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

[O] can I fill-paragraph some org data from the command line?


From: Alan Schmitt
Subject: [O] can I fill-paragraph some org data from the command line?
Date: Wed, 12 Mar 2014 13:25:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

Hello,

I'm playing with manipulating some data in org-mode format from the
command line (OK, I admit that I'm playing with acme).

I'm wondering if there is a tool, or a way to call emacs, to do the
following:

- get some data in org-mode format from stdin
- nicely format the text
- spit the result on stdout

I tried using "pandoc -t org" but the results are not satisfactory,
especially in the presence of lists inside lists. For instance, I would
like to convert:

#+begin_example
- This is a very long line. This is a very long line. This is a very long line. 
This is a very long line.
  - This is a very long line. This is a very long line. This is a very long 
line. This is a very long line.
  - This is a yet another very long line. This is a very long line. This is a 
very long line. This is a very long line.
#+end_example

into this

#+begin_example
- This is a very long line. This is a very long line. This is a very
  long line. This is a very long line.
  - This is a very long line. This is a very long line. This is a very
    long line. This is a very long line.
  - This is a yet another very long line. This is a very long line. This
    is a very long line. This is a very long line.
#+end_example

Do you have tools or an approach using emacs (as a command line tool) to
suggest?

Thanks,

Alan



reply via email to

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