[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Folding Source Blocks
From: |
Eric S Fraga |
Subject: |
Re: [O] Folding Source Blocks |
Date: |
Wed, 02 Nov 2011 16:36:08 +0000 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) |
Ian Barton <address@hidden> writes:
> On 02/11/11 13:13, Nick Dokos wrote:
>> Ian Barton<address@hidden> wrote:
>>
>
>>> If I have a large begin_src block it can make reading the surrounding
>>> text difficult, as the reader has to keep paging up and down. Ideally
>>> it would be possible to fold src blocks, but I can see that would be
>>> inconsistent with org's structure. I could put the block in a draw,
>>> but was interested in what others do.
>>>
>>
>> Pressing TAB (bound to org-cycle) on a #+BEGIN_SRC line folds the code
>> block for me - not sure whether there is a special setting to allow
>> that, but a quick look at my config did not uncover anything.
>>
>
> Thanks for that. When I start Emacs with no config file, it works for
> me too. Must be some setting in my config that is stopping it working.
>
> Ian.
and
#+startup: hideblocks
(equivalently: org-hide-block-startup variable)
will start up the org file with all blocks hidden. I use this all the
time as I tend to have quite large blocks often.
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1
: using Org-mode version 7.7 (release_7.7.508.ga081)