Put that in to your .emacs or C-x C-e it. Then, if you know that your file has no more than N (say 100) tables, do C-x C-f myfile.html C-u 100 M-x send-table RET You are done. > > ---------------------------------------------------------------------- > > Begin macro, do stuff, end macro, > > C-x (, do stuff, C-x ) > > Execute macro > C-x e > > Or provide a local, on-the-move binding and execute it. > C-x C-k b > > Name the macro and store it as a command in your .emacs. > C-x C-k n, M-x insert-kbd-macro > > Run the stored macro from batch script (Hint: C-h v org-export-as-html-batch) > emacs --batch --load=~/MyInitStuff.el --visit=MyFile --funcall MyNamedMacro" > > ---------------------------------------------------------------------- > > For help with jumping to relevant Info portions, do > > C-h K C-x ( > C-h K C-x C-k n > > (Note the CAPITAL `K' above) > > ---------------------------------------------------------------------- --