From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Is any extension in Emacs can shrink and expand a block of code Date: Fri, 10 Aug 2012 19:04:18 +0200 Message-ID: <50253F12.9090104@easy-emacs.de> References: NNTP-Posting-Host: plane.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 1344618275 355 80.91.229.3 (10 Aug 2012 17:04:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 17:04:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 10 19:04:36 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SzsdT-0001nH-Vw for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 19:04:32 +0200 Original-Received: from localhost ([::1]:39919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzsdT-00010J-4z for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 13:04:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzsdN-0000zV-Nt for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 13:04:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzsdK-0004HH-IU for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 13:04:25 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:65207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzsdK-0004H5-8k for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 13:04:22 -0400 Original-Received: from [192.168.178.27] (brln-4d0c0d25.pool.mediaWays.net [77.12.13.37]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0LcaOp-1TPY9L2R1D-00k7sY; Fri, 10 Aug 2012 19:04:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: X-Provags-ID: V02:K0:5v5QzA/Bv6Bq2XpJAOXv1jJCTApOCOL+74IMCpCwrGr WM8HSCP2qd6ZvT1BTyXG4WQ49fNwRlcDT1wD4mthdH5L5hcq0r bJMMXdFx9hXCu0HqivrjsnFytFf6EXcWZyZQI7m5zIK5U8MFxc 0/7jfblPohxMU692M17eepaWHgCKGQnmUI+AIITWZUtjrI0SW0 /pT2ID2BlMIEQYNdCMSzoW+AX288tZEf8DpIodY0WBhM6F0/68 JdNDTY7r3G1BbYaF6sKzOlXFGldZ+9T3YWsTVcDZXqUsMs/Tk8 qTWdfauOntSQK1lauyCn2GQgt4UdDcs1rN3fZ27FCzBlt5gYcq FsiqE5cc8LgfNJyU+PS9QtbH+Gawmz7XNGMIGUYdl X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86301 Archived-At: Am 10.08.2012 16:55, schrieb Qiang Yu: > Hi all, > > Is there any extension in Emacs can shrink and expand a block of code? > > For example: > > int foo() > { > return 0; > } > > the content in "{}" can be shrunk to like: > > int foo() > {...} > > and I can expand it back. > > Regards, > yuq > hs-minor-mode from hideshow.el see also cc-mode-help@lists.sourceforge.net