From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: code folding Date: Tue, 16 Aug 2011 18:39:10 +0800 Message-ID: References: <81tya0kdfc.fsf@gmail.com> <87bovvf5gr.fsf@altern.org> <817h6hvzni.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1313491164 30895 80.91.229.12 (16 Aug 2011 10:39:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2011 10:39:24 +0000 (UTC) Cc: help-gnu-emacs To: Jambunathan K Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 16 12:39:19 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QtH3G-0005ty-As for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Aug 2011 12:39:18 +0200 Original-Received: from localhost ([::1]:57790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtH3F-0007oJ-ID for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Aug 2011 06:39:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtH3B-0007oD-1x for help-gnu-emacs@gnu.org; Tue, 16 Aug 2011 06:39:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtH39-00026w-Uo for help-gnu-emacs@gnu.org; Tue, 16 Aug 2011 06:39:13 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:54039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtH39-00026e-Sa for help-gnu-emacs@gnu.org; Tue, 16 Aug 2011 06:39:11 -0400 Original-Received: by qwa26 with SMTP id 26so3649471qwa.0 for ; Tue, 16 Aug 2011 03:39:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HLGmz6NUSBGXNQgxTo2sz7+F9nOcUhK6bW4Ra5s/xfY=; b=mxRc0WFfRHCa8Mt6UHjIyd7iGMIAseamFtFOkEnP00i2+zVMvKJzv9KIW81MSLpCUB J8Kowez3Rq15ox8Z/0laPJv5/OnAIegt/JJGmC4qcKrj5mEhywBKn1E5h+gOwElvK1G1 EShDd1Dx6W4h3ugKkU7vGjkxNVazf5zgofiWk= Original-Received: by 10.224.219.74 with SMTP id ht10mr3267967qab.293.1313491150552; Tue, 16 Aug 2011 03:39:10 -0700 (PDT) Original-Received: by 10.224.67.197 with HTTP; Tue, 16 Aug 2011 03:39:10 -0700 (PDT) In-Reply-To: <817h6hvzni.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 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:81958 Archived-At: On Sun, Aug 14, 2011 at 4:12 AM, Jambunathan K wrote: > Look at bindings effective while in orgstruct(++)-mode. > > Do a C-h b and search for orgstruct. > I have the following code in my ruby-mode-hook to enable code folding using outline-minor-mode + outline-magic. (outline-minor-mode 1) (set (make-local-variable 'outline-regexp) "^[ \t]*\\(?:def \\|class\\|module\\)\\|^[ \t]*###==") What's the equivalent in orgstruct? org-outline-regexp seems interesting but isn't documented. -- Le