From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Re: Minor org mode for achieve code folding effects Date: Wed, 11 Jan 2012 20:12:12 -0600 Message-ID: References: <868da41d9950ca4a287a97c02084c28c@mail.webfaction.com> <877h0ycmov.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlA9H-0001cL-4B for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 21:12:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlA9G-0004Bc-0k for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 21:12:15 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:46923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlA9F-0004BY-QM for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 21:12:13 -0500 Received: by pbcc4 with SMTP id c4so38211pbc.0 for ; Wed, 11 Jan 2012 18:12:12 -0800 (PST) In-Reply-To: <877h0ycmov.fsf@ucl.ac.uk> 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: Giovanni Giorgi , Emacs orgmode > For instance, when I was doing a lot of Java programming, I used > hideshow.el all the time to hide block and function bodies. =A0Works very > well (although the default key bindings are annoying to me). =A0Have a > look! =A0It's a standard package in emacs, at least in Emacs 24 but much > earlier than that I believe. > > There's a small add-on called hideshow-org.el which may be useful as > well: Having read the OP, I'll second Eric's vote for hideshow-org. It's a better solution for folding functions. However, the combination of org/outline-minor-mode/Tassilo's code works well for splitting a file into foldable sections. Incidentally, you can use both of these methods at the same time; they don't conflict too much. --l