From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: remapping C-c ' to another key Date: Tue, 29 Jul 2014 19:23:16 +0200 Message-ID: <87y4vcoz97.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCB7j-0001O3-DK for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 13:23:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCB7b-0002yH-7L for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 13:23:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:44206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCB7b-0002yB-1D for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 13:23:31 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XCB7Z-0001WQ-0F for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 19:23:29 +0200 Received: from e178189064.adsl.alicedsl.de ([85.178.189.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jul 2014 19:23:29 +0200 Received: from tjolitz by e178189064.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jul 2014 19:23:29 +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: > 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 ...) -- cheers, Thorsten