From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: drain Newsgroups: gmane.emacs.help Subject: Re: Is any extension in Emacs can shrink and expand a block of code Date: Fri, 10 Aug 2012 09:48:23 -0700 (PDT) Message-ID: <1344617303109-261142.post@n5.nabble.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344619622 11367 80.91.229.3 (10 Aug 2012 17:27:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 17:27:02 +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:27:03 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 1SzszH-0003G0-5Z for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 19:27:03 +0200 Original-Received: from localhost ([::1]:50479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzsNz-00085h-ME for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 12:48:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzsNs-0007sY-Of for Help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 12:48:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzsNr-0008Ik-RN for Help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 12:48:24 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:41263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzsNr-0008Ig-Mg for Help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 12:48:23 -0400 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SzsNr-0007TT-3m for Help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 09:48:23 -0700 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 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:86302 Archived-At: Add this to your .emacs: ;; collapsible code (global-set-key "\C-x\M-h" 'hs-minor-mode) (global-set-key "\C-c\C-h" 'hs-toggle-hiding) (global-set-key "\C-c\M-h" 'hs-hide-all) (global-set-key "\C-c\M-s" 'hs-show-all) I suggest adjusting the particular bindings to your taste and style. -- View this message in context: http://emacs.1067599.n5.nabble.com/Is-any-extension-in-Emacs-can-shrink-and-expand-a-block-of-code-tp261127p261142.html Sent from the Emacs - Help mailing list archive at Nabble.com.