[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-style folding for a .emacs

From: Daniel Clemente
Subject: Re: [Orgmode] org-style folding for a .emacs
Date: Thu, 16 Jul 2009 03:02:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (gnu/linux)

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. Just 
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: 

;;; a
; something else
;;;; a.1
; bla
;; this is still a normal comment

;;; b

Cycle with C-tab, C-S-tab, …

-- Daniel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]