From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Rogoff Subject: Re: Minor org mode for achieve code folding effects Date: Tue, 10 Jan 2012 16:34:55 -0800 Message-ID: <4F0CD92F.9030004@therogoffs.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080003020900060706030104" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkm9c-0000Xw-7u for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 19:35:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rkm9a-0003BL-UM for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 19:35:00 -0500 Received: from oproxy9.bluehost.com ([69.89.24.6]:55622) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Rkm9a-0003B9-Je for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 19:34:58 -0500 Received: from ip68-228-84-160.oc.oc.cox.net ([68.228.84.160] helo=therogoffs.local) by box775.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1Rkm9Y-0001bH-KU for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 17:34:56 -0700 References: CADzxs1nkW_KO_n7RsTtO_W2nAvyUvoKGy+FgztaRFiFyuh44ug@mail.gmail.com List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------080003020900060706030104 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Carlos Russo gmail.com> writes: I have used both Carsten's and Eric's solution, as well as hideshow-org (https://github.com/secelis/hideshow-org), which works rather well and deserves a mention. Expanding a bit on Carsten's post: Tassilo Horn wrote some convenience functions to set the outline minor mode regexps to correspond to the current comment syntax. Thus, if I'm (for instance) in shell-script mode, # * and # ** become the outline level 1 and 2 markers. This is great info! I was just looking for this in the last couple of days and appreciate everyone's code since it's way beyond my elisp abilities. I like this a lot more than the folding.el I had been using since I already use orgmode. However, I've got a question: I'm using this with verilog-mode which uses "// " to start comments. The problem is that when I indent my file, the comments indent too and it seems that output-minor-mode (and, I assume, orgmode) only recognize headings that start in column 0. How/where can I change this so it will recognize any line that is whitepace followed by the comment-start? Thanks! David --------------080003020900060706030104 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Carlos Russo <mestre.adamastor <at> gmail.com> writes:
I have used both Carsten's and Eric's solution, as well as
hideshow-org (https://github.com/secelis/hideshow-org), which works
rather well and deserves a mention.

Expanding a bit on Carsten's post: Tassilo Horn wrote some convenience
functions to set the outline minor mode regexps to correspond to the
current comment syntax.  Thus, if I'm (for instance) in shell-script
mode, # * and # ** become the outline level 1 and 2 markers.

This is great info! I was just looking for this in the last couple of days and appreciate everyone's code since it's way beyond my elisp abilities.
I like this a lot more than the folding.el I had been using since I already use orgmode.  However, I've got a question:

I'm using this with verilog-mode which uses "// " to start comments.  The problem is that when I indent my file, the comments indent too and it seems that output-minor-mode (and, I assume, orgmode) only recognize headings that start in column 0.  How/where can I change this so it will recognize any line that is whitepace followed by the comment-start?

Thanks!

 David
--------------080003020900060706030104--