From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Young Subject: Re: Re-align All Tables in a Region. Date: Sat, 18 Aug 2012 04:40:00 -0400 Message-ID: References: <502F4EDF.3080800@wilkesley.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2eZg-0001ul-CR for emacs-orgmode@gnu.org; Sat, 18 Aug 2012 04:40:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2eZf-0001o2-7V for emacs-orgmode@gnu.org; Sat, 18 Aug 2012 04:40:04 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:47002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2eZd-0001iO-QO for emacs-orgmode@gnu.org; Sat, 18 Aug 2012 04:40:03 -0400 Received: by wgbez12 with SMTP id ez12so3270358wgb.30 for ; Sat, 18 Aug 2012 01:40:00 -0700 (PDT) In-Reply-To: <502F4EDF.3080800@wilkesley.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: ian@manor-farm.org Cc: emacs-orgmode@gnu.org Hi Ian, On Sat, Aug 18, 2012 at 4:14 AM, Ian Barton wrote: > I have a file which contains lots of tables. The document is created by a > shell script, so when it's opened none of the tables are aligned. Is there a > command that will let me re-align all tables in a region? There are a lot of > tables, so I don't want to do them one at a time. > > As a workaround I have used #+STARTUP: align in the buffer, which aligns > them if I C-c on the in buffer setting. > > Ian. > Not sure if there is a built-in, but this seems to work for me: #+begin_src emacs-lisp (defun my-align-all-tables () (interactive) (org-table-map-tables 'org-table-align 'quietly)) #+end_src Hope this helps. Sincerely, Andrew