On Fri, Dec 09 2011, Andrea Crotti wrote:

> I lilke the fill-paragraph behaviour that I get in org-mode, and I was
> wondering
> if I could use it also in other modes.
> Using (turn-on-orgstruct) doesn't change the behaviour, and actually
> how does it
> work?
>
> I mean M-q in org-mode is still bound to the exact same function, how
> come it
> behaves differently?

Usually you alter the behavior of fill-paragraph by changing the values
of `paragraph-start' and `paragraph-separate'. `fill-paragraph' and
friends consult these variables to decide what lines to fill together
into one big chunk, and what lines to keep as separate lines. Take a
look at the docstrings (and if you alter them, keep them buffer-local).

Eric

> For example I would like to be able to refill comments in python
> without messing
> up the list structure:
>
> # TODO
> # - see how to handle possible interconnected links between different
> projects
> # - add some ways to declare more possible branches
> # - the name of the protocol is not necessary unless it's HTTP
>
> Ideas?
>
>

-- 
GNU Emacs 24.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.24.6)
 of 2011-12-07 on pellet
Org-mode version 7.7 (release_7.7.626.g4a48)


Reply via email to