VimGolf in Emacs 017: HTML to Haml
The Challenge:
Help convert this HTML page to Haml.
Features Shown:
One of the keys here is the idea of multi-passing a file. This keyboard macro does that
Don’t forget that maybe the easiest way to write a function in emacs without learning a lick of elisp is <f3> ... <f4> C-x C-k n ... C-x C-f .../init.el RET M-x insert-kbd-macro ... RET. Anything you know how to do in the editor can be available always through this!
- The
query-replace-regexpfunction - The
flush-linesfunction - The
whitespace-cleanupfunction - Regular Expressions
M-x flush-lines RET ^ *$ RET
- Keyboard Macros with recursive editing