Emacs has a macro for that.

[deleted]