5

I want to print org files or share them with in emails. Clean view looks good for these purposes.

Is it possible to export org files so that the output text file looks exactly like clean view (of course without theme colors)?

4
  • Have you tried org-export-as-ascii? It's not the same format, but perhaps is sufficient.
    – glucas
    Commented Dec 21, 2016 at 17:57
  • Thanks @glucas, but if you try the two, you'll find that they are quite different. I just want a pretty list but or-export-as-ascii tries to give you a text document.
    – Ben
    Commented Dec 22, 2016 at 15:49
  • @Ben By "clean view" do you mean this?
    – erikstokes
    Commented Dec 23, 2016 at 15:28
  • @erikstokes Yes.
    – Ben
    Commented Dec 24, 2016 at 0:00

1 Answer 1

3

This gets pretty close I think although I haven't tested extensively:

# -*- org-ascii-headline-spacing:(0 . 0); org-ascii-bullets:((ascii 42) (latin1 167) (utf-8 8226)) -*-
#+OPTIONS: H:0 num:nil toc:nil @:t author:nil
#+TITLE:
* foo
** bar
** zim
*** gir
*** dib

Output:

* foo
  * bar
  * zim
    * gir
    * dib

If you do a UTF-8 export it'll use • instead of asterisk. If you prefer you can set those file-local variables on the first line as global using M-x customize-group RET org-export-ascii RET

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.