[PLUG] An emacs shortcut
Russell Senior
russell at personaltelco.net
Mon Feb 13 06:21:01 UTC 2023
>>>>> "Russell" == Russell Senior <russell at personaltelco.net> writes:
Russell> You could probably set an embarrassingly long line length, and
Russell> reformat the paragraph too.
C-x f
50000 ;; or higher if this is insufficient
M-q
... and then remember to restore it to normal (70) when you are done.
https://www.gnu.org/software/emacs/manual/html_node/emacs/Fill-Commands.html
>>
>> That key sequence runs 'delete-indentation' which, per the command
>> documentation:
>>
>>
>> *Join this line to previous and fix up whitespace at join.If there is
>> a fill prefix, delete it from the beginning of thisline.*
>>
>> It is not necessary to be at the end of the line.
>>
>> Johnathan
>>
>> On Sun, Feb 12, 2023 at 2:21 PM Rich Shepard
>> <rshepard at appl-ecosys.com>
>> wrote:
>>
>>> I've asked for emacs help here a number of times. This time I
>>> share a solution I found (deep in a StackExchange thread) that's
>>> very useful for me and, perhap, for other emacs users: unfilling a
>>> paragraph.
>>>
>>> Text downloaded from a web site (and other sources) may come as a
>>> single line per paragraph. When we want to reformat that text into
>>> lines no longer than a specified number of characters we use M-q
>>> (fill paragraph).
>>>
>>> The reverse process is needed when we want to format paragaphs
>>> with newlines for use on a web site. Turns out there's an unfill
>>> command: M-^.
>>>
>>> Place the cursor (the point) at the end of the paragraph's last line
>>> and keep entering M-^. A simple macro does wonders for a long text
>>> file.
>>>
>>> Hope this helps someone, sometime.
>>>
>>> Rich
--
Russell Senior
russell at personaltelco.net
More information about the PLUG
mailing list