From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: What if sometimes want auto-filling and sometimes don't? Necessary to keep manually turning on/off? Date: Wed, 30 Jan 2013 10:06:54 -0700 Message-ID: <20130130170654.GA17683@hysteria.proulx.com> References: <87k3qv2d0r.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1359565631 6341 80.91.229.3 (30 Jan 2013 17:07:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jan 2013 17:07:11 +0000 (UTC) Cc: Chris Seberino To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 30 18:07:31 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U0b8C-0006ta-2L for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Jan 2013 18:07:28 +0100 Original-Received: from localhost ([::1]:41703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0b7t-0001Nl-Vb for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Jan 2013 12:07:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0b7n-0001NZ-2v for help-gnu-emacs@gnu.org; Wed, 30 Jan 2013 12:07:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0b7g-0002o2-HG for help-gnu-emacs@gnu.org; Wed, 30 Jan 2013 12:07:02 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:59611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0b7g-0002no-AM for help-gnu-emacs@gnu.org; Wed, 30 Jan 2013 12:06:56 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 1BC7C211D6; Wed, 30 Jan 2013 10:06:55 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id ED7D12DCC0; Wed, 30 Jan 2013 10:06:54 -0700 (MST) Mail-Followup-To: help-gnu-emacs@gnu.org, Chris Seberino Content-Disposition: inline In-Reply-To: <87k3qv2d0r.fsf@bzg.ath.cx> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.17.153.58 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88871 Archived-At: Bastien wrote: > Chris Seberino writes: > > What is easiest way to have it both ways? Must people keep turning > > it on and off? > > I use auto-fill-mode by default, I sometimes disable it when I don't > need auto-filling in the whole buffer, and I often use this: > > (defun unfill-paragraph () > ... > (define-key global-map "\M-Q" 'unfill-paragraph) I usually turn auto-fill-mode on and off. "M-x auto-f" is sufficiently short that I haven't bothered to do anything further. When I want to join a paragraph of lines together I use M-^ which is confusingly named delete-indentation, although the key character mnemonic is perfect. I put the point on the last line and then hold down the META and SHIFT keys and press ^ once for each line and join what I want up into one line. Not as spiffy as the above suggestion but works in a default configuration. delete-indentation is an interactive compiled Lisp function in `simple.el'. It is bound to M-^. (delete-indentation &optional ARG) Join this line to previous and fix up whitespace at join. If there is a fill prefix, delete it from the beginning of this line. With argument, join this line to following line. Bob