From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: Using autofill./ Date: 04 Oct 2005 20:32:51 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <86hdbx427w.fsf@flame.pc> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128447356 10008 80.91.229.2 (4 Oct 2005 17:35:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2005 17:35:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 04 19:35:33 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMqhJ-00080x-Gu for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Oct 2005 19:35:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMqhI-0006Uu-Vn for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Oct 2005 13:35:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.banetele.no!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 48 Original-NNTP-Posting-Host: 62.103.39.226 Original-X-Trace: news.sunsite.dk DXC=aCF6Bl; VL^MjW2:ak; I7eU]W6nT6d; jI9i_KICUlS@gimQ Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:134338 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29912 Archived-At: Shashank Khanvilkar 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 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.