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

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

Re: folding-mode question


From: tomer
Subject: Re: folding-mode question
Date: Wed, 08 Dec 2010 15:29:20 -0000
User-agent: G2/1.0

On Sep 22, 10:44 am, Marc Mientki <mien...@nonet.com> wrote:
> Am 22.09.2010 08:58, schrieb tomer:
>
> > Is it possbile to fold partial line ,line for example:
>
> > the folding mark is //<<<
>
> > not folded:
> > if (a==b) { //<<<
> > a=1
> > b=2
> > }//>>>
>
> > is it possbile to fold it like this:
> > if (a==b) {...
>
> Yes (even without special marks like //<<<), try hideshow.el.
>
> ;; * Commands provided
> ;;
> ;; This file provides Hideshow Minor Mode.  When active, nine commands
> ;; are available, implementing block hiding and showing.  They (and their
> ;; keybindings) are:
> ;;
> ;;   hs-hide-block                      C-c @ C-h
> ;;   hs-show-block                      C-c @ C-s
> ;;   hs-hide-all                        C-c @ C-M-h
> ;;   hs-show-all                        C-c @ C-M-s
> ;;   hs-hide-level                      C-c @ C-l
> ;;   hs-toggle-hiding                   C-c @ C-c
> ;;   hs-mouse-toggle-hiding             [(shift mouse-2)]
> ;;   hs-hide-initial-comment-block
> ;;
> ;; Blocks are defined per mode.  In c-mode, c++-mode and java-mode, they
> ;; are simply text between curly braces, while in Lisp-ish modes parens
> ;; are used.  Multi-line comment blocks can also be hidden.  Read-only
> ;; buffers are not a problem, since hideshow doesn't modify the text.
> ;;
> ;; The command `M-x hs-minor-mode' toggles the minor mode or sets it
> ;; (similar to other minor modes).
>
> HTH
> regards
> Marc

Thanks for the answer I
work with a language called "e" (hardware verification langauge) it
looks like C but not exactly.
am I still able to use hideshow ?


reply via email to

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