[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [C-u M-q] -> unfill-paragraph
From: |
Tom Roche |
Subject: |
Re: [C-u M-q] -> unfill-paragraph |
Date: |
Sat, 12 Nov 2011 20:50:49 -0500 |
User-agent: |
GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.4) |
Tom Roche Thu, 10 Nov 2011 12:29:33 -0500
>> [How] to write one's own `fill-paragraph' façade such that
>> * my `fill-paragraph' would hide (e.g., be earlier in a $PATH) the
>> emacs-provided `fill-paragraph'
>> * my `fill-paragraph' could delegate to the emacs-provided
>> `fill-paragraph' except when called with prefix argument
Scott Frazer Thu, 10 Nov 2011 14:00:14 -0500
> (defun my-fill-paragraph (&optional arg)
> (interactive "P")
> (let ((fill-column (if arg (point-max) fill-column)))
> (fill-paragraph)))
> (global-set-key (kbd "M-q") 'my-fill-paragraph)
Thanks! that seems to work as desired.