Just what the title says.
My org files often have large prefaces (area containing #+TAGS:, #+STARTUP, etc.) and would like to keep it folded most of the times.
How do I achieve this?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityJust what the title says.
My org files often have large prefaces (area containing #+TAGS:, #+STARTUP, etc.) and would like to keep it folded most of the times.
How do I achieve this?
I use in my files special heading, for example Settings and hide all the in-buffer settings there. It works very well even in the beginning and in the end of the file.
If you use Global Cycling (S-Tab
), a text in this heading will be showed at third stage. I don't know how to prevent this when using Global Cycling, but with Local Cycling (Tab
on headings) it works very well.
#+BEGIN_PREFACE ... #+END_PREFACE
will also work. :) But yours is an easier approach
As someone commented above, storing them in a drawer works. I usually start any document something like:
:preamble:
#+startup: entitiespretty overview indent
#+options: toc:nil num:nil
#+todo: TODO FANCY OPTIONS | DONE
# ...etc.
:end:
#+title: My title
...Then fold the drawer, and all the ugly but necessary stuff is neatly tucked away. Works like a charm, is accessible and looks nice.