From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Scott Randby <srandby@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Table Columns
Date: Thu, 24 Jan 2019 21:36:31 +0100 [thread overview]
Message-ID: <87k1itztbk.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <0b0033a4-e932-832b-3ca5-5ed7e83c05c4@gmail.com> (Scott Randby's message of "Thu, 24 Jan 2019 13:15:27 -0500")
Hello,
Scott Randby <srandby@gmail.com> 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
next prev parent reply other threads:[~2019-01-24 20:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-24 18:15 Table Columns Scott Randby
2019-01-24 20:36 ` Nicolas Goaziou [this message]
2019-01-24 21:45 ` Scott Randby
2019-01-25 11:11 ` Nicolas Goaziou
-- strict thread matches above, loose matches on Subject: below --
2019-01-24 14:33 Scott Randby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k1itztbk.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=srandby@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).