3

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?

  • Consider to keep the items in a drawer. – Marco Wahl May 11 '18 at 14:33
  • 2
    @MarcoWahl -- do you have a link to any documentation to support the proposition that these types of in-buffer settings will work if they are stored in a drawer?: orgmode.org/manual/In_002dbuffer-settings.html – lawlist May 11 '18 at 14:56
  • @lawlist -- Could not find a reference in the documentation. So this proposition obeys the rules. ;) Looks like regexp patterns are used to find the settings. So you could write them also e.g. at the bottom or see the answer of Konstantin Morenko for another idea. – Marco Wahl May 12 '18 at 7:18
2

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.

| improve this answer | |
  • 1
    I figured that #+BEGIN_PREFACE ... #+END_PREFACE will also work. :) But yours is an easier approach – deshmukh May 12 '18 at 10:16
  • 1
    You could mark that special heading with the ":ARCHIVE:" tag, then it won't expand with Global Cycling. You can always expand it with C-TAB on that heading if you want to get in there. – Stuart Hickinbottom May 18 at 20:19
0

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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