From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: Custom keymaps on org blocks Date: Wed, 7 Jun 2017 18:52:36 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIkkh-0004wX-0d for emacs-orgmode@gnu.org; Wed, 07 Jun 2017 19:52:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIkkf-0004wN-V8 for emacs-orgmode@gnu.org; Wed, 07 Jun 2017 19:52:39 -0400 Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]:36907) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dIkkf-0004wF-Q7 for emacs-orgmode@gnu.org; Wed, 07 Jun 2017 19:52:37 -0400 Received: by mail-it0-x22b.google.com with SMTP id m47so13335348iti.0 for ; Wed, 07 Jun 2017 16:52:37 -0700 (PDT) In-Reply-To: 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: John Kitchin Cc: "emacs-orgmode@gnu.org" On Wed, Jun 7, 2017 at 7:49 AM, John Kitchin wrote: > Grant Rettke writes: > >> You want Polymode: https://github.com/vspinu/polymode > > I have never been able to get polymode to work. Do have an incantation > that works? I forgot that I set it up for R markdown files. But it did work on my machine after manually installing the `polymode' package. https://github.com/grettke/home/blob/master/.emacs.el#L1992-L2005 >> It is confusing alternating between the Org major a mode and the >> source block major mode as you scroll through documents. One second >> you are an author for humans and the other an author for the computer. >> That is how literate programming is defined in theory, but in practice >> I don't do it like that because it is mentally jarring. > > Interesting perspective. I find switching to special edit mode jarring, > particularly when it is just for the key bindings, e.g. lispy mode, or > getting python indentation to work. We are both surprised!