|
From: | Drew Adams |
Subject: | RE: [External] : Re: Emacs: adding 1 to every number made of 2 digits inside a marked region. |
Date: | Thu, 23 Sep 2021 14:13:24 +0000 |
> > This is a typical job for a macro. > > 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's not. Just record the keystrokes you use to make one change, then replay the recording. Just make sure to start and end your recording at places that allow it to do the right thing when repeated.
[Prev in Thread] | Current Thread | [Next in Thread] |