Wikipedia:Wikipedia-mode.el/Add Spaces Inside Headers
Appearance
A useful teeny macro that can add spaces between the equals signs of every header it comes across. Nice for readability. Just make sure that when you call it the first time, you're on the opening equals sign of a header.
M-f ;; forward-word M-b ;; backward-word SPC ;; self-insert-command C-e ;; move-end-of-line M-b ;; backward-word M-f ;; forward-word SPC ;; self-insert-command M-n ;; wikipedia-next-header
To get into the macro editor itself, use:
M-x edit-kbd-macro C-x e
This will allow you to use the header space adder as the "last keyboard macro", accessible through "C-x e".