emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Table Columns


From: Nicolas Goaziou
Subject: Re: [O] Table Columns
Date: Thu, 24 Jan 2019 21:36:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello,

Scott Randby <address@hidden> writes:

> I wonder this: Is there a way to tell Org to align and shrink all the
> tables in an Org file after startup or does it have to be done on an
> individual basis?

It should be

   #+startup: align shrink 

> My use case is this: I have an Org file with many tables and I edit
> some of them which requires me to shrink those tables. Later, I run
> a macro which accesses and alters all of the tables. I need all of the
> tables to be in the same state so that the macro runs correctly.
> I guess the solution is to have the macro put a table in the proper
> state before it does anything to that table, but that is one more
> thing I have to remember to put in the macro. It would be easiest if
> I could just tell Org to unshrink (which is what I actually want) all
> tables in the file before I run the macro.

There is no function to expand all tables in the buffer, but it is
pretty straightforward, and fast:

  (dolist (o (overlays-in (point-min) (point-max)))
    (when (eq 'table-column-hide (overlay-get o 'org-overlay-type))
      (delete-overlay o)))

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]