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

Re: Syntax- or indentation-based folding



Andrew Nesbit <alnesbit@xxxxxxxxxxxxxxxxxxxx> wrote:
>Is there a method of folding which is either syntax- or
>indentation-driven?  I find that using {{{ and }}} markers is
>inconvenient.

You can use "set_selective_display", which emacs emulation binds to
"Ctrl-X $".  To use this, move the cursor to the desired column and
then invoke set_selective_display.  This will cause all lines indented
_beyond_ the current column to be hidden.  To show all lines, move the
cursor to the first column and the invoke set_selective_display.

This function is defined in jed/lib/seldisp.sl.

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.