Carlos Russo <mestre.adamastor <at> gmail.com
I have used both Carsten's and Eric's
solution, as well as
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
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?