From: Rainer Stengele <rainer.stengele@diplan.de>
To: emacs-orgmode@gnu.org
Subject: Re: include file contents in org files?
Date: Wed, 22 Aug 2007 22:25:14 +0200 [thread overview]
Message-ID: <fai634$fan$1@sea.gmane.org> (raw)
In-Reply-To: <ee5f7c970b56a047703b50467bb7e4d2@science.uva.nl>
Carsten Dominik schrieb:
> On Aug 22, 2007, at 12:54, Rainer Stengele wrote:
>>
>> Taking the idea a little "around the corner" I wonder if it would be
>> possible to hide everything that begins with a "#" before the first
>> heading.
>> Application: I have my org files under subversion control and carry
>> around this line at the beginning of my files:
>>
>>
>> # SVN $Revision: 385 $ $Date: 2007-08-21 23:50:43 +0200 (Di, 21 Aug
>> 2007) $
>>
>> I would like to hide that and similar lines unless showing all with
>> "C-c C-a". Also a possible "#include" line could be hidden. If
>> somebody wants to see the lines - of course - a config option would do
>> it.
>>
>> Rainer
>
> The easiest way is this:
>
> * COMMENT setup section
> #+STARTUP: overview
> more stuff that should be hidden
>
> * The first "real" headline in the file.
>
> Another possibility woud be to use a drawer for this,
> for example a SETUP drawer.
>
> (setq org-drawers '("PROPERTIES" "SETUP"))
>
> Then you could write
>
> :SETUP:
> #+STARTUP: overview
> more stuff that should be hidden
> :END:
>
> * The first "real" headline in the file.
>
> All you then need to do is to make sure that the drawer will
> be closed when first visiting the file, for example
>
> (add-hook 'org-mode-hook
> (lambda () (org-cycle-hide-drawers 'all)))
>
> - Carsten
I use the drawers. Works perfect. Thanks a lot!
next prev parent reply other threads:[~2007-08-22 20:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-21 21:47 include file contents in org files? Rainer Stengele
2007-08-21 23:44 ` Bastien
2007-08-22 9:10 ` Adam Spiers
2007-08-22 9:32 ` Rainer Stengele
2007-08-22 9:42 ` Carsten Dominik
2007-08-22 10:44 ` Rainer Stengele
2007-08-22 10:54 ` Rainer Stengele
2007-08-22 11:07 ` Carsten Dominik
2007-08-22 20:25 ` Rainer Stengele [this message]
2007-08-23 17:55 ` Carsten Dominik
2007-08-23 23:32 ` Daniel J. Sinder
2007-08-24 2:57 ` Carsten Dominik
2007-08-24 11:30 ` Rainer Stengele
2007-08-22 1:30 ` Eddward DeVilla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='fai634$fan$1@sea.gmane.org' \
--to=rainer.stengele@diplan.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.