[PLUG] An emacs shortcut
Russell Senior
russell at personaltelco.net
Mon Feb 13 05:32:16 UTC 2023
You could probably set an embarrassingly long line length, and reformat the
paragraph too.
On Sun, Feb 12, 2023, 21:20 Johnathan Mantey <manteyjg at gmail.com> wrote:
> Rich,
>
> 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
>>
>>
>>
>>
>>
>>
More information about the PLUG
mailing list