On 06/21/2015 06:18 PM, Yuri D'Elia wrote:
Yes, this is what I had in mind, however I was hoping there was a more
general established approach for this sort of thing. Since I'm also
using many other languages with an interpreter (ess-mode, tuareg to
mention two that I regularly use), I'd like a general approach.
For example, if we change py-section-start/end to use syntax-table, we
can define a general approach to defining code "chunks" using delimited
comments.
I was hoping there was already a global minor mode that does something
similar to delimit code chunks.
Maybe the best approach would simply be to reuse `folding-mode' per-mode
marks (as in: py-send-current-fold).