|
From: | David Rogoff |
Subject: | Re: [O] Minor org mode for achieve code folding effects |
Date: | Tue, 10 Jan 2012 16:34:55 -0800 |
User-agent: | Postbox 3.0.2 (Macintosh/20111203) |
Carlos Russo <mestre.adamastor <at> gmail.com> writes: I have used both Carsten's and Eric's
solution, as well as
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.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. 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 |
[Prev in Thread] | Current Thread | [Next in Thread] |