From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Custom keymaps on org blocks Date: Wed, 07 Jun 2017 06:58:17 -0600 Message-ID: References: <878tl5ugl9.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIaXY-0006fH-Et for emacs-orgmode@gnu.org; Wed, 07 Jun 2017 08:58:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIaXU-0007gq-J0 for emacs-orgmode@gnu.org; Wed, 07 Jun 2017 08:58:24 -0400 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]:35821) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dIaXU-0007fi-DP for emacs-orgmode@gnu.org; Wed, 07 Jun 2017 08:58:20 -0400 Received: by mail-it0-x236.google.com with SMTP id m62so110951094itc.0 for ; Wed, 07 Jun 2017 05:58:20 -0700 (PDT) In-reply-to: <878tl5ugl9.fsf@nicolasgoaziou.fr> 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" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > John Kitchin writes: > >> Is there any interest in having custom keymaps on org blocks? >> >> The idea I had is to have the option to make the major-mode keymaps be >> active on the src blocks. > > There is already `org-babel-do-key-sequence-in-edit-buffer', i.e., C-c > C-v C-x. For once in a while uses this works, but this isn't really a solution for key-bindings that are composable, e.g. in lispy. There you can use single key-presses to navigate, rearrange, insert code, etc... Also it adds three chords to every key-binding out of the box, it would be fewer keys to just go to special edit mode unless you make a simpler key definition! > > Regards, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu