[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] fill-paragraph?

From: Eric Abrahamsen
Subject: Re: [O] fill-paragraph?
Date: Sat, 10 Dec 2011 13:20:33 +0800
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)

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).


> 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 (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

[Prev in Thread] Current Thread [Next in Thread]