From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: fill-paragraph?
Date: Sat, 10 Dec 2011 13:20:33 +0800 [thread overview]
Message-ID: <87ty59atpa.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 4EE22AA9.2080105@gmail.com
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)
next prev parent reply other threads:[~2011-12-10 5:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 15:35 fill-paragraph? Andrea Crotti
2011-12-10 5:20 ` Eric Abrahamsen [this message]
2011-12-10 8:10 ` fill-paragraph? Samuel Wales
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ty59atpa.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).