Add a hack by Andrew Young: "Align all tables in a file"
authorBastien Guerry <bzg@altern.org>
Sat, 18 Aug 2012 15:09:13 +0000 (17:09 +0200)
committerBastien Guerry <bzg@altern.org>
Sat, 18 Aug 2012 15:09:13 +0000 (17:09 +0200)
org-hacks.org

index 6446587..3fae2de 100644 (file)
@@ -530,6 +530,16 @@ If you think you might have subtrees with misplaced =SCHEDULED= and
 #+end_src
 
 ** Org Table
+*** Align all tables in a file
+
+Andrew Young provided this function in [[http://thread.gmane.org/gmane.emacs.orgmode/58974/focus%3D58976][this thread]]:
+
+#+begin_src emacs-lisp
+  (defun my-align-all-tables ()
+    (interactive)
+    (org-table-map-tables 'org-table-align 'quietly))
+#+end_src
+
 *** Transpose table
 #+index: Table!Calculation
     :PROPERTIES: