help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to insert a string every 2 characters


From: Nicolas Richard
Subject: Re: How to insert a string every 2 characters
Date: Mon, 24 Aug 2015 17:12:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Angus Comber <address@hidden> writes:

> Hi
>
> If I have a string of characters like this:
>
> 0102030405
>
> I want to transform into:
>
> 01 02 03 04 05
>
> How do I do that?

You could also use a keyboard macro:
<f3> C-f C-f SPC <f4>
then hit <f4> repeatidly (or use C-u 123 <f4> for some value of 123)
until satisfied.

kbd macros tend to be an easy way to automate complex tasks when you
don't have time and don't need to be too smart.

-- 
Nico



reply via email to

[Prev in Thread] Current Thread [Next in Thread]