* Folding Source Blocks @ 2011-11-02 7:28 Ian Barton [not found] ` <lists@wilkesley.net> 0 siblings, 1 reply; 4+ messages in thread From: Ian Barton @ 2011-11-02 7:28 UTC (permalink / raw To: emacs-orgmode 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. Ian. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <lists@wilkesley.net>]
* Re: Folding Source Blocks [not found] ` <lists@wilkesley.net> @ 2011-11-02 13:13 ` Nick Dokos 2011-11-02 13:30 ` Ian Barton 0 siblings, 1 reply; 4+ messages in thread From: Nick Dokos @ 2011-11-02 13:13 UTC (permalink / raw To: ian; +Cc: nicholas.dokos, emacs-orgmode Ian Barton <lists@wilkesley.net> 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. Nick ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Folding Source Blocks 2011-11-02 13:13 ` Nick Dokos @ 2011-11-02 13:30 ` Ian Barton 2011-11-02 16:36 ` Eric S Fraga 0 siblings, 1 reply; 4+ messages in thread From: Ian Barton @ 2011-11-02 13:30 UTC (permalink / raw To: emacs-orgmode On 02/11/11 13:13, Nick Dokos wrote: > Ian Barton<lists@wilkesley.net> 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Folding Source Blocks 2011-11-02 13:30 ` Ian Barton @ 2011-11-02 16:36 ` Eric S Fraga 0 siblings, 0 replies; 4+ messages in thread From: Eric S Fraga @ 2011-11-02 16:36 UTC (permalink / raw To: ian; +Cc: emacs-orgmode Ian Barton <lists@wilkesley.net> writes: > On 02/11/11 13:13, Nick Dokos wrote: >> Ian Barton<lists@wilkesley.net> 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) ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-02 18:07 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-11-02 7:28 Folding Source Blocks Ian Barton [not found] ` <lists@wilkesley.net> 2011-11-02 13:13 ` Nick Dokos 2011-11-02 13:30 ` Ian Barton 2011-11-02 16:36 ` Eric S Fraga
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.