From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: interesting dilemma with ob-ipython Date: Thu, 09 Jun 2016 23:42:45 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB7j7-0008Jv-B5 for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 17:42:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB7j2-0004Hj-7z for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 17:42:56 -0400 Received: from mail-io0-x22b.google.com ([2607:f8b0:4001:c06::22b]:36468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB7j2-0004G6-22 for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 17:42:52 -0400 Received: by mail-io0-x22b.google.com with SMTP id n127so50106558iof.3 for ; Thu, 09 Jun 2016 14:42:50 -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" Hi John, On 2016-06-09 at 23:33, John Kitchin wrote: > I was looking into ob-ipython as a replacement for regular > org-babel-python [...] > > Here is the dilemma: > If I special edit this, it is in python-mode, not hy-mode. And similarly > on export, it is highlighted as ipython, not hy-lang. > > Any thoughts on how to address these? I'm not lispy enough to implement this, but I have an idea where you might start. See: https://lists.gnu.org/archive/html/emacs-orgmode/2015-08/msg00594.html Which is a thread which discussed (and provided an implementation for) named python sessions. Specifically, it uses the ":session foo" variable to modify the name of the special-edit buffer. Genercially, it uses something from the Babel header to modify something about special edit buffer, which is what I think you want to do. Good luck, -k.