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: Arbitrary folding in emacs Date: Mon, 31 Mar 2014 10:02:27 +0200 Message-ID: <53392113.5090909@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: ger.gmane.org 1396252705 25850 80.91.229.3 (31 Mar 2014 07:58:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2014 07:58:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 31 09:58:19 2014 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 1WUX6o-000516-6O for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Mar 2014 09:58:18 +0200 Original-Received: from localhost ([::1]:47508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUX6n-0007x3-Gt for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Mar 2014 03:58:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUX6W-0007wh-7m for help-gnu-emacs@gnu.org; Mon, 31 Mar 2014 03:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUX6Q-0001wC-6H for help-gnu-emacs@gnu.org; Mon, 31 Mar 2014 03:58:00 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.24]:62269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUX6P-0001vz-Sd for help-gnu-emacs@gnu.org; Mon, 31 Mar 2014 03:57:54 -0400 Original-Received: from purzel.sitgens (brln-4d0c1847.pool.mediaWays.net [77.12.24.71]) by mrelayeu.kundenserver.de (node=mreue103) with ESMTP (Nemesis) id 0MgI6w-1WjQW91i2o-00Ni22; Mon, 31 Mar 2014 09:57:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-Provags-ID: V02:K0:gPbwX1+ApBXXJ/KaDkzEwatAuyFdR1Tm1MnzclC4ZDH mp8bw9MAOSYoet8FYJ6QbrVlbRQdunZXyUoX28CybedA99H8n1 U0UQA0AkOG1fYPvq+PDOlFrub0/t/JpMO4CJTBPlsLTyTGPRNQ Kw+IWykUqlKFZ1wMfLQcf88whMDMJrWC9ZQdlnys+peHruQY41 4SkuB0v6guB0OZUvihuCwN++aJWJSq8Sk+Njr67QvVSDdTIqGH eAi4u7CVGY60HSEVdF+0SzVhXPhVHeLgM6TwdYVjKyLyaKfhIX s5PT55XHqL14dh6OplrKRch/EKpSWEOkKEz8N2MAInhdttq2Kn 7QiXyPhigoGopAk4TaaSSjSiUy+ZSmoixxerQam22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.24 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:96878 Archived-At: Am 28.03.2014 10:06, schrieb C K Kashyap: > I am trying to go-over a huge c++ file. In vim, I can collapse a huge set > of lines by simply highlighting it an then doing a zf. I was wondering if I > can do something similar in emacs - rather how I can do it in emacs. > > I tried hs-minor-mode but it appears to have pre-defined notions of > "foldable" blocks. > > Regards, > Kashyap > If hs-minor-mode is on, you could use ar-hide-region-atpt, which is provided here: https://launchpad.net/s-x-emacs-werkstatt Load thingatpt-utils-base.el thing-at-point-utils.el