From: Carsten Dominik <carsten.dominik@gmail.com>
To: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: how to bind keys in orgtbl-mode
Date: Thu, 15 Dec 2011 09:11:03 +0100 [thread overview]
Message-ID: <B3D6EF6A-C846-43F4-B0B2-ACB70085444D@gmail.com> (raw)
In-Reply-To: <80pqfq1det.fsf@somewhere.org>
On 15.12.2011, at 08:50, Sebastien Vauban wrote:
> Hi Carsten,
>
> Carsten Dominik wrote:
>> On 9.12.2011, at 22:36, Uwe Brauer wrote:
>>> I would like to have the same binding as in org-mode
>>>
>>> (local-set-key [(control c) (control w)] 'org-table-wrap-region)
>>
>> We could just add this to the standard orgtbl bindings - don't know why
>> this is not the case. OK, I just did that.
>>
>>> (local-set-key [(control c) (control h)] 'org-table-insert-hline)
>>
>> This one on the other hand violates Emacs conventions, so
>> we cannot do this by default.
>
> FMI, why is the second violating Emacs conventions? I don't really grap a
> difference between both, and I'm not aware of the convention which would
> become broken there.
C-c is a prefix key. As with all prefix keys, if you follow
with C-h (h for help), a list of key bindings in that prefix
map is displayed. This is automatic and is one of the
self-documenting features of Emacs. If you bind
C-c C-h to a different command, the user looses helpful display.
Try, for example C-x C-h or C-c C-x C-h to see what I mean.
I hardly use this, but I do use it to remind myself of
rarely used rectangle commands: C-x r C-h
Cheers
- Carsten
prev parent reply other threads:[~2011-12-15 8:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 21:36 how to bind keys in orgtbl-mode Uwe Brauer
2011-12-09 21:44 ` Nick Dokos
2011-12-09 22:24 ` Carsten Dominik
2011-12-09 22:49 ` Uwe Brauer
2011-12-15 7:50 ` Sebastien Vauban
2011-12-15 8:11 ` Carsten Dominik [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=B3D6EF6A-C846-43F4-B0B2-ACB70085444D@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wxhgmqzgwmuf@spammotel.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).