From: Giorgos Keramidas <keramida@ceid.upatras.gr>
Subject: Re: Using autofill./
Date: 04 Oct 2005 20:32:51 +0300 [thread overview]
Message-ID: <86hdbx427w.fsf@flame.pc> (raw)
In-Reply-To: dhu6nk$r9u$1@newsx.cc.uic.edu
Shashank Khanvilkar <shashank@mia.ece.uic.edu> writes:
> However suppose I have a paragraph like the below:
> Background
> ----------
> * This is a test message. This is a test message. This is a test
> message.This is a test message. This is a test message. This is a test
> message. This is a test message. This is a test message.
> * This is a second test message. This is a second test message.
> This is a second test message. This is a second test message.
> This is a second test message.
>
> How do i ask emacs to apply the new line width.
> I tried using <Meta-q> but it makes the above lines as:
>
> Background ---------- * This is a test message. This is a test
> message. This is a test message. This is a test message. This
> is a test message. This is a test message. This is a test
> message. This is a test message. * This is a second test
> message. This is a second test message. This is a second
> test message. This is a second test message. This is a
> second test message.
You can set a "fill prefix" of a couple of spaces. The M-q command
respects the value of fill-prefix. To set the value of fill-prefix
use the ``C-x .'' command.
With a fill prefix of 2 spaces and the following original text:
* This is a test message. This is a test message. This
is a test message.This is a test message. This is a test
message. This is a test message. This is a test
message. This is a test message.
you can set the fill-column to its new value (i.e. 40) and
refill the paragraph by hitting M-q just once:
* This is a test message. This is a test
message. This is a test message.This is a
test message. This is a test message. This
is a test message. This is a test
message. This is a test message.
I usually reformat list items by setting the fill-prefix to the
indentation of the second line (the first one has the bullet).
Note that M-q is *not* the same as auto-fill-mode, but auto-fill-mode
also respects the current fill-prefix.
next prev parent reply other threads:[~2005-10-04 17:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-04 15:24 Using autofill./ Shashank Khanvilkar
2005-10-04 16:12 ` Peter Dyballa
2005-10-04 17:32 ` Giorgos Keramidas [this message]
2005-10-05 0:18 ` Neon Absentius
[not found] ` <mailman.9763.1128471558.20277.help-gnu-emacs@gnu.org>
2005-10-05 13:45 ` Giorgos Keramidas
2005-10-05 14:26 ` Neon Absentius
[not found] ` <mailman.9832.1128522413.20277.help-gnu-emacs@gnu.org>
2005-10-05 14:56 ` Giorgos Keramidas
2005-10-05 15:10 ` Neon Absentius
2005-10-04 17:41 ` rgb
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86hdbx427w.fsf@flame.pc \
--to=keramida@ceid.upatras.gr \
/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.
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).