3 ms·
Another way to insert counters is the keyboard macro counter (info "(emacs) Keyboard Macro Counter") kmacro-set-counter (C-x C-k C-i) Then <F3> to start recor
by foobarqux 3y ago
Another way to insert counters is the keyboard macro counter (info "(emacs) Keyboard Macro Counter")
kmacro-set-counter (C-x C-k C-i)
Then <F3> to start recording the macro and <F3> again to insert the counter. <F4> to end the macro and <F4> to run it. So <F3><F3><space><F4><F4><F4><F4><...> will insert the integers starting from zero separated by a space.
This can be more useful in certain cases, for example when you need to do "structural editing" like editing a certain field in JSON where it can be easier to locate the edit point using keyboard shortcuts or search.