[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: folding-mode question
From: |
Marc Mientki |
Subject: |
Re: folding-mode question |
Date: |
Wed, 08 Dec 2010 15:29:19 -0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 |
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
- folding-mode question, tomer, 2010/12/08
- Re: folding-mode question,
Marc Mientki <=
- Re: folding-mode question, tomer, 2010/12/08
- Re: folding-mode question, Marc Mientki, 2010/12/08
- Re: folding-mode question, tomer, 2010/12/08
- Re: folding-mode question, Marc Mientki, 2010/12/08
- Re: folding-mode question, Tim X, 2010/12/08
- Re: folding-mode question, Marc Mientki, 2010/12/08
- Re: folding-mode question, tomer, 2010/12/08
- Re: folding-mode question, Marc Mientki, 2010/12/08
- Re: folding-mode question, Stefan Monnier, 2010/12/08
- Re: folding-mode question, Marc Mientki, 2010/12/08