2 ms·
Yep. Just wrote this today to prettify all the tables in a Markdown file: (while (not (eobp)) (while (not (markdown-table-at-point-p)) (forwa
by School-Cotton 4y ago
Yep. Just wrote this today to prettify all the tables in a Markdown file:
(while (not (eobp))
(while (not (markdown-table-at-point-p))
(forward-char 1))
(markdown-table-align)
(goto-char (markdown-table-end)))
I'd have no idea how to do this in vim!
- ParetoOptimal 4y agoA macro and a plugin installed with the markdown-table-align equivalent? Though you could also use this approach with emacs macros too.
- School-Cotton 4y agoIn vim I wouldn’t know where to find that markdown-table-align exists nor how to write a macro (and I used vim for much longer than emacs). In emacs I just had to notice that pressing tab in markdown mode aligned tables (among other things), then press C-h k <TAB> to see what function that key invokes, jump to the code for it and start reading.