all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marc Mientki <mientki@nonet.com>
To: help-gnu-emacs@gnu.org
Subject: Re: folding-mode question
Date: Wed, 22 Sep 2010 10:44:17 +0200	[thread overview]
Message-ID: <i7cflb$jfd$1@news.onet.pl> (raw)
In-Reply-To: <b3bbc454-42e0-4641-afbe-d9e42a8ee9b6@v23g2000vbi.googlegroups.com>

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



  reply	other threads:[~2010-09-22  8:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-22  6:58 folding-mode question tomer
2010-09-22  8:44 ` Marc Mientki [this message]
2010-09-22  9:47   ` tomer
2010-09-22 10:45     ` Marc Mientki
2010-09-24  0:17       ` tomer
2010-09-24  7:13         ` Marc Mientki
2010-09-25 19:31           ` tomer
2010-09-28  9:49             ` Marc Mientki
2010-09-28 22:46               ` Stefan Monnier
2010-09-29  8:54                 ` Marc Mientki
2010-09-29  8:56                   ` Marc Mientki
2010-09-29  9:00                   ` Marc Mientki
     [not found]           ` <87sk0yk5al.fsf@puma.rapttech.com.au>
2010-09-28  9:35             ` Marc Mientki
2010-09-25  0:47         ` Tim X

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='i7cflb$jfd$1@news.onet.pl' \
    --to=mientki@nonet.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.