From: Bernt Hansen <bernt@norang.ca>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Table conversion problem
Date: Thu, 03 Jan 2008 12:58:04 -0500 [thread overview]
Message-ID: <87d4six043.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <2F46226A-E136-4FF8-985D-88632CD0DD3A@gmail.com> (Carsten Dominik's message of "Thu\, 3 Jan 2008 18\:44\:41 +0100")
Carsten Dominik <carsten.dominik@gmail.com> writes:
> orgtbl-mode commands only work if there is already a table context,
> and this is not the case for your application. However, you can bind
> the command `org-table-convert-region' to a key and use it directly.
>
> If this is your only use of C-c | in orgtbl-mode, you can use to
> orgtbl-mode hook and overwrite the standard (context-sensitive) binding:
>
> (add-hook 'orgtbl-mode-hook
> (lambda ()
> (define-key orgtbl-mode-map 'org-table-convert-region "\C-c|")))
>
Thanks! I tried finding the org-table-convert-region function but I
failed miserably when looking for orgtbl-* functions :) doh!
org-table-convert-region works great. I rarely need this function (so
far) outside of org-mode so I'll just call it directly the next time I
need it.
Thanks again for all your great work!
Bernt
prev parent reply other threads:[~2008-01-03 17:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-03 17:02 Table conversion problem Bernt Hansen
2008-01-03 17:44 ` Carsten Dominik
2008-01-03 17:58 ` Bernt Hansen [this message]
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=87d4six043.fsf@gollum.intra.norang.ca \
--to=bernt@norang.ca \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).