From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Mientki Newsgroups: gmane.emacs.help Subject: Re: folding-mode question Date: Wed, 22 Sep 2010 10:44:17 +0200 Organization: http://onet.pl Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291871770 18193 80.91.229.12 (9 Dec 2010 05:16:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 05:16:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 06:16:06 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQYrN-0002VH-LT for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:16:05 +0100 Original-Received: from localhost ([127.0.0.1]:38385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQYrN-0002cf-1c for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:16:05 -0500 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!plix.pl!newsfeed1.plix.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: port-83-236-194-74.static.qsc.de Original-X-Trace: news.onet.pl 1285145067 19949 83.236.194.74 (22 Sep 2010 08:44:27 GMT) Original-X-Complaints-To: niusy@onet.pl Original-NNTP-Posting-Date: Wed, 22 Sep 2010 08:44:27 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:181415 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76723 Archived-At: 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