From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Cc: Chris Seberino <cseberino@gmail.com>
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 [thread overview]
Message-ID: <20130130170654.GA17683@hysteria.proulx.com> (raw)
In-Reply-To: <87k3qv2d0r.fsf@bzg.ath.cx>
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
next prev parent reply other threads:[~2013-01-30 17:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-30 7:48 What if sometimes want auto-filling and sometimes don't? Necessary to keep manually turning on/off? Chris Seberino
2013-01-30 10:14 ` Bastien
2013-01-30 17:06 ` Bob Proulx [this message]
2013-01-30 18:07 ` What if sometimes want auto-filling and sometimes don't?Necessary " Drew Adams
2013-01-30 11:07 ` What if sometimes want auto-filling and sometimes don't? Necessary " Peter Dyballa
2013-01-30 13:58 ` What if sometimes want auto-filling and sometimes don't? Necessary tokeep " Drew Adams
[not found] ` <mailman.18604.1359554349.855.help-gnu-emacs@gnu.org>
2013-01-30 22:23 ` Chris Seberino
2013-01-30 23:03 ` Bob Proulx
2013-01-30 23:04 ` drain
[not found] ` <mailman.18671.1359586998.855.help-gnu-emacs@gnu.org>
2013-02-01 6:27 ` Chris Seberino
2013-01-30 23:16 ` What if sometimes want auto-filling and sometimes don't? Necessary to keep " Glenn Morris
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=20130130170654.GA17683@hysteria.proulx.com \
--to=bob@proulx.com \
--cc=cseberino@gmail.com \
--cc=help-gnu-emacs@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.
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).