From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Re: org-style folding for a .emacs Date: Thu, 16 Jul 2009 03:02:48 +0200 Message-ID: <87fxcx4eyv.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRFLO-0007e2-2q for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 21:01:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRFLJ-0007Z5-OB for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 21:01:05 -0400 Received: from [199.232.76.173] (port=44921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRFLJ-0007YZ-Fy for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 21:01:01 -0400 Received: from mail-ew0-f217.google.com ([209.85.219.217]:36836) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRFLJ-0005wO-11 for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 21:01:01 -0400 Received: by ewy17 with SMTP id 17so5014916ewy.42 for ; Wed, 15 Jul 2009 18:00:59 -0700 (PDT) In-Reply-To: (Scot Becker's message of "Mon, 13 Jul 2009 22:23:51 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Scot Becker Cc: Org-mode ml El lun, jul 13 2009 a les 23:23, Scot Becker va escriure: > Does anyone have a recipe for easy org-style folding of an elisp file? > I'd like to divide my .emacs into segments to make it easier to > oversee and navigate. I did this without needing to change variables or define new functions. Jus= t add at the first line: ; -*- mode: emacs-lisp; mode:outline-minor; outline-regexp:";;;;* [^ \n]" = -*- (Reopen the file to activate that). And then start headings with ;;; (that's level 1), for instance:=20 ;;; a ; something else ;;;; a.1 ; bla ;; this is still a normal comment ;;; b Cycle with C-tab, C-S-tab, =E2=80=A6 -- Daniel