From: tsongchong@gmail.com
Subject: Re: how to let hs-minor-mode hide a block ended by "end"?
Date: 25 Sep 2006 00:28:55 -0700 [thread overview]
Message-ID: <1159169335.626646.50880@i42g2000cwa.googlegroups.com> (raw)
In-Reply-To: <mailman.7308.1159096114.9609.help-gnu-emacs@gnu.org>
I've tried this in my .emacs:
(add-to-list 'hs-special-modes-alist '(lua-mode "do" "end" nil nil
nil))
to handle blocks without nest, but again, nothing happened when "Hide
Block" was pressed
I'm a emacs-lisp newbie. Is there anything wrong with the add-to-list ?
thanks and regards,
Tsong Chong
David Hansen wrote:
> 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
prev parent reply other threads:[~2006-09-25 7:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-24 9:09 how to let hs-minor-mode hide a block ended by "end"? tsongchong
2006-09-24 10:59 ` David Hansen
[not found] ` <mailman.7308.1159096114.9609.help-gnu-emacs@gnu.org>
2006-09-25 7:28 ` tsongchong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1159169335.626646.50880@i42g2000cwa.googlegroups.com \
--to=tsongchong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).