[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What if sometimes want auto-filling and sometimes don't? Necessary t
Re: What if sometimes want auto-filling and sometimes don't? Necessary to keep manually turning on/off?
Wed, 30 Jan 2013 11:14:44 +0100
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)
Chris Seberino <address@hidden> 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 ()
"Takes a multi-line paragraph and makes it into a single line of text."
(let ((fill-column (point-max)))
(define-key global-map "\M-Q" 'unfill-paragraph)
It lets me unfill a paragraph and put everything in one line when