From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Minor org mode for achieve code folding effects Date: Wed, 11 Jan 2012 14:56:32 +0000 Message-ID: <877h0ycmov.fsf@ucl.ac.uk> References: <868da41d9950ca4a287a97c02084c28c@mail.webfaction.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl0Zw-0000Nd-Pw for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 10:59:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl0Zp-0007cT-Ia for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 10:59:08 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:62460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl0Zp-0007Zs-Dc for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 10:59:01 -0500 In-Reply-To: <868da41d9950ca4a287a97c02084c28c@mail.webfaction.com> (Giovanni Giorgi's message of "Mon, 09 Jan 2012 16:14:15 +0100") 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 Cc: Emacs orgmode Giovanni Giorgi writes: > > > Hi all, > I'd like to edit some ruby/python/shell script using > functions folding. > > I'd like to get a way to fold functions or method. Giovanni, I wonder, having thought about this some more, whether using org mode is the correct solution? (as much as I like org!) There are other solutions that may work /out of the box/ as you want. This is *emacs* we are talking about after all! For instance, when I was doing a lot of Java programming, I used hideshow.el all the time to hide block and function bodies. Works very well (although the default key bindings are annoying to me). Have a look! It'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: ,---- | ;;; hideshow-org.el - Provides org-mode like hide and show for hideshow.el | ;; | ;; Copyright (C) 2009 Shane Celis | ;; | ;; Author: Shane Celis `---- Have a search for that; if you can't find it, I can send you my copy but there may be a more up to date one on the web somewhere... HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1 : using Org-mode version 7.8.03 (release_7.8.03.76.ga9c15)