From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: set-keys in orgtble mode Date: Thu, 22 May 2008 20:02:09 +0200 Message-ID: <01DFDDD8-D54D-49E7-901B-F0CD8679D4DA@uva.nl> References: <4835a43c.2a528c0a.6eef.7841@mx.google.com> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzF7E-0004UC-UJ for emacs-orgmode@gnu.org; Thu, 22 May 2008 14:02:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzF7E-0004SF-9T for emacs-orgmode@gnu.org; Thu, 22 May 2008 14:02:12 -0400 Received: from [199.232.76.173] (port=49736 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzF7E-0004S4-1K for emacs-orgmode@gnu.org; Thu, 22 May 2008 14:02:12 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:35073) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzF7D-0005xP-TC for emacs-orgmode@gnu.org; Thu, 22 May 2008 14:02:12 -0400 In-Reply-To: <4835a43c.2a528c0a.6eef.7841@mx.google.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org-mode 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- and M-S-, 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