From: Mike G.
Subject: Lisp code folding in Emacs ?
Date: 
Message-ID: <1187723076.590046.222090@o80g2000hse.googlegroups.com>
Hiya,

Does anyone have any pointers on how to achieve code-folding in Emacs
for Common Lisp source?

Something like:

(defun foo (x)
 ...)

when the DEFUN symbol is clicked .. or, if I click a LET

(let ((foo1 baz1)
       (foo2 baz2))
  ...)

Anyone have some ideas?

From: Rainer Joswig
Subject: Re: Lisp code folding in Emacs ?
Date: 
Message-ID: <joswig-673FB5.21155621082007@news-europe.giganews.com>
In article <························@o80g2000hse.googlegroups.com>,
 "Mike G." <···············@gmail.com> wrote:

> Hiya,
> 
> Does anyone have any pointers on how to achieve code-folding in Emacs
> for Common Lisp source?
> 
> Something like:
> 
> (defun foo (x)
>  ...)
> 
> when the DEFUN symbol is clicked .. or, if I click a LET
> 
> (let ((foo1 baz1)
>        (foo2 baz2))
>   ...)
> 
> Anyone have some ideas?

With GNU Emacs:

See 'hideshow' minor mode.

in a Lisp buffer do:   M-x hs-minor-mode

-- 
http://lispm.dyndns.org
From: Mike G.
Subject: Re: Lisp code folding in Emacs ?
Date: 
Message-ID: <1187877616.495284.260500@i13g2000prf.googlegroups.com>
On Aug 21, 3:15 pm, Rainer Joswig <······@lisp.de> wrote:
> In article <························@o80g2000hse.googlegroups.com>,
>  "Mike G." <···············@gmail.com> wrote:
>
>
>
> > Hiya,
>
> > Does anyone have any pointers on how to achieve code-folding in Emacs
> > for Common Lisp source?
>
> > Something like:
>
> > (defun foo (x)
> >  ...)
>
> > when the DEFUN symbol is clicked .. or, if I click a LET
>
> > (let ((foo1 baz1)
> >        (foo2 baz2))
> >   ...)
>
> > Anyone have some ideas?
>
> With GNU Emacs:
>
> See 'hideshow' minor mode.
>
> in a Lisp buffer do:   M-x hs-minor-mode
>
> --http://lispm.dyndns.org

Oh man, this is awesome, thanks!

And I don't even have to hack it to fold up stuff inside curly
brackets either.
(A string processing macro that I wrote).

Really, guys -- why don't we just add some boot code to Emacs and be
done with it?
:)