help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: how to let hs-minor-mode hide a block ended by "end"?


From: David Hansen
Subject: Re: how to let hs-minor-mode hide a block ended by "end"?
Date: Sun, 24 Sep 2006 12:59:40 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On 24 Sep 2006 02:09:03 -0700 tsongchong@gmail.com wrote:

> Hi,
>
> I'm using LUA programming language, which begins a code block with "do"
> and ends it with "end"
>
> It seems that, by default, hs-minor-mode can only hide code blocks
> surrounded by braces "{}" or like.
>
> how can i make it to hide code between "do" and "end"?

C-h v hs-special-modes-alist RET

You'll have to write a `FORWARD-SEXP-FUNC' that takes care of
nested blocks.

David





reply via email to

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