From: Carsten Dominik <c.dominik@uva.nl>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: set-keys in orgtble mode
Date: Thu, 22 May 2008 20:02:09 +0200 [thread overview]
Message-ID: <01DFDDD8-D54D-49E7-901B-F0CD8679D4DA@uva.nl> (raw)
In-Reply-To: <4835a43c.2a528c0a.6eef.7841@mx.google.com>
Hi Eric,
On May 22, 2008, at 6:50 PM, Eric Schulte wrote:
> Hi,
>
> I very much enjoy using orgtble mode, however there are some functions
> which I run over and over org-table-delete-column, and
> org-table-insert-row, etc...
That would be M-S-<left> and M-S-<down>, can't you use these keys?
> it is not clear if there is a way to
> define key mappings such that they only take effect inside of tables.
> Would it be possible to do this using the familiar
> local/global-set-key syntax?
> Should I write my own orgtble-hijacker-command-### functions?
To add your own keys, you can do something like this, in orgtbl-mode-
hook.
(org-defkey orgtbl-mode-map "\C-cd"
(orgtbl-make-binding 'org-table-delete-column 1001 "\C-
cd"))
Note that you need to give the key twice, and the 1001 should be a
unique number.
Instead of org-defkey, you can use define-key. org-defkey is the same,
only that it obeys the variable org-disputed-keys.
>
> Also, is there a good way to display the available table commands
> other than grepping the org-mode help?
Looking at the menu, it contains a pretty much complete list of
commands.
Or how about the refcard? Pretty complete, too.
- Carsten
next prev parent reply other threads:[~2008-05-22 18:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 16:50 set-keys in orgtble mode Eric Schulte
2008-05-22 18:02 ` Carsten Dominik [this message]
2008-05-22 21:38 ` Eric Schulte
2008-05-23 6:22 ` Carsten Dominik
2008-05-23 6:25 ` Carsten Dominik
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=01DFDDD8-D54D-49E7-901B-F0CD8679D4DA@uva.nl \
--to=c.dominik@uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=schulte.eric@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).