From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Folding Source Blocks Date: Wed, 02 Nov 2011 16:36:08 +0000 Message-ID: <87ipn2eb2f.fsf@ucl.ac.uk> References: <4EB0F104.3030303@wilkesley.net> <20556.1320239623@alphaville.dokosmarshall.org> <4EB14607.5020602@wilkesley.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLfDc-0006Ky-B9 for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 14:07:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLfDa-0006Jl-LE for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 14:07:20 -0400 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:60103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLfDa-0006J5-EU for emacs-orgmode@gnu.org; Wed, 02 Nov 2011 14:07:18 -0400 In-Reply-To: <4EB14607.5020602@wilkesley.net> (Ian Barton's message of "Wed, 02 Nov 2011 13:30:47 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: ian@manor-farm.org Cc: emacs-orgmode@gnu.org Ian Barton writes: > On 02/11/11 13:13, Nick Dokos wrote: >> Ian Barton 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)