|
From: | Gregory Heytings |
Subject: | Re: Emacs: adding 1 to every number made of 2 digits inside a marked region. |
Date: | Thu, 23 Sep 2021 10:02:14 +0000 |
This is a typical job for a macro. Move the cursor to the beginning of the first item of the list, then do:C-x ( C-e M-b M-: (insert (format "%d" (1+ (number-at-point)))) C-k C-a C-n C-x ) Then type C-x e e e ...Seems complicated :-)
It isn't. When you type C-x ( you start defining a macro, you just do what you want to do on a single item (and it's WYSIWIG!), and you end your macro definition with C-x ). Then you repeat it on the other items.
[Prev in Thread] | Current Thread | [Next in Thread] |