Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on VS Code can do that?. Parent comment
For your example, this is the kmacro I ended up with:
;; Keyboard Macro Editor. Press C-c C-c to finish; press C-x k RET to cancel. ;; Original keys: 2*M-f M-DEL b C-x C-k TAB C-a 2*C-k 2*C-y C-p Command: last-kbd-macro Key: none Macro: 2*M-f ;; forward-word M-DEL ;; backward-kill-word b ;; self-insert-command C-x C-k TAB ;; kmacro-insert-counter C-a ;; move-beginning-of-line 2*C-k ;; kill-line 2*C-y ;; yank C-p ;; previous-line
There are no comments on this comment yet.
For your example, this is the kmacro I ended up with:
(after you've created a macro, you can get the above by doing M-x kmacro-edit-macro.)