From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Gimblett Newsgroups: gmane.emacs.help Subject: Re: Redistributing Text After Editing Date: Mon, 30 Oct 2006 16:14:26 +0000 Message-ID: <20061030161426.GM16897@cspcag2.swan.ac.uk> References: <20061030013636.GA29022@bill.local> <874ptmfpk6.fsf@gmail.com> <7077306.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162225230 16334 80.91.229.2 (30 Oct 2006 16:20:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2006 16:20:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 30 17:20:16 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GeZmk-000275-4x for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Oct 2006 17:14:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeZmj-0002W6-HM for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Oct 2006 11:14:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GeZmV-0002Vz-RX for help-gnu-emacs@gnu.org; Mon, 30 Oct 2006 11:14:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GeZmQ-0002V0-6u for Help-gnu-emacs@gnu.org; Mon, 30 Oct 2006 11:14:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeZmQ-0002Ux-0I for Help-gnu-emacs@gnu.org; Mon, 30 Oct 2006 11:14:30 -0500 Original-Received: from [137.44.1.33] (helo=mhs.swan.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GeZmP-0005e9-32 for Help-gnu-emacs@gnu.org; Mon, 30 Oct 2006 11:14:29 -0500 Original-Received: from [137.44.2.59] (helo=cs-svr1.swan.ac.uk) by mhs.swan.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GeZmN-0004ba-DZ for Help-gnu-emacs@gnu.org; Mon, 30 Oct 2006 16:14:27 +0000 Original-Received: from cspcag2.swan.ac.uk (cspcag2 [137.44.2.21]) by cs-svr1.swan.ac.uk (Postfix) with ESMTP id 5E41F1D027 for ; Mon, 30 Oct 2006 16:14:27 +0000 (GMT) Original-Received: from cspcag2.swan.ac.uk (gimbo@localhost.swan.ac.uk [127.0.0.1]) by cspcag2.swan.ac.uk (8.13.3/8.13.3) with ESMTP id k9UGEReV006036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 30 Oct 2006 16:14:27 GMT Original-Received: (from gimbo@localhost) by cspcag2.swan.ac.uk (8.13.3/8.13.3/Submit) id k9UGEQ4O016902 for Help-gnu-emacs@gnu.org; Mon, 30 Oct 2006 16:14:26 GMT Original-To: Help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <7077306.post@talk.nabble.com> User-Agent: Mutt/1.4.2i 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:38418 Archived-At: On Mon, Oct 30, 2006 at 08:05:50AM -0800, bjemacs wrote: > > Here's the scenario. I open a page containing several > paragraphs. I begin to edit one of the paragraphs. As I am > editing the paragraph, it begins to take on an 'odd' shape. When > I have finished editing the paragraph I press M-q and the > paragraph takes on a more 'normal' shape. > > I'm looking for a way to have Emacs shape the paragraph 'as' I > edit it, rather than having to press M-q each time I'm done > editing the paragraph. Then, as the man said, refill-mode will do what you want. Add this to your .emacs file: (add-hook 'text-mode-hook '(lambda () (refill-mode))) Now every time you're in a text mode buffer, refill-mode will be turned on automatically. I don't like it personally, but I believe the above will do what you've asked for... -Andy -- Andy Gimblett Computer Science Department University of Wales Swansea http://www.cs.swan.ac.uk/~csandy/