From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: remapping C-c ' to another key Date: Wed, 30 Jul 2014 11:46:44 +0200 Message-ID: <87wqavb2m3.fsf@gmail.com> References: <87y4vcoz97.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCQTQ-0000Hl-9P for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 05:47:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCQTJ-00039v-Ve for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 05:47:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:44706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCQTJ-00039g-PR for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 05:46:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XCQTI-0008Kb-NQ for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 11:46:56 +0200 Received: from e178189071.adsl.alicedsl.de ([85.178.189.71]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jul 2014 11:46:56 +0200 Received: from tjolitz by e178189071.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jul 2014 11:46:56 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Alan Schmitt writes: Hi Alan, > On 2014-07-29 19:23, Thorsten Jolitz writes: > >> Alan Schmitt writes: >> >>> Hello, >>> >>> I'm trying to remap ~C-c '~ to ~ '~ and I'm having some >>> trouble. More specifically, I'm able to initiate the editing part using >>> a global binding to `org-edit-special', but I don't know how to bind the >>> same key to `org-edit-src-exit' when I'm editing a source block. As >>> I suspect I will also need to change the binding for other special edit >>> buffers, I'm wondering if there is a way to do it all at once. >> >> you are in org-mode when you call `org-edit-special', thus you could do >> >> ,---- >> | (org-defkey org-mode-map "KEY" `org-edit-special) >> `---- >> >> >> then you are in some major-mode with minor-mode 'org-src-mode' active, >> thus >> >> ,---- >> | (org-defkey org-src-mode-map "KEY" `org-edit-src-exit) >> `---- >> >> should work (completely untested though ...) > > It works great, thanks a lot. > > A followup question: why use ` and not ' before the function name? Should be a normal quote ', this is just a typo! Although it does not hurt in this case, but anyway ... -- cheers, Thorsten