From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Wish: babel for python3 Date: Tue, 18 Oct 2011 13:13:39 +0100 Message-ID: <87zkgyo5u4.fsf@gmail.com> References: <87y5wntz12.fsf@yahoo.de> <1641361.izftS2FJEB@fluss> <3500778.0hWYKf89pM@fluss> <4E9D3F39.6020703@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG8W8-0002aH-5o for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 08:11:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RG8W7-0007Sc-30 for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 08:11:36 -0400 Received: from lo.gmane.org ([80.91.229.12]:39838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG8W6-0007SN-QV for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 08:11:35 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RG8W5-0002Bz-AE for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 14:11:33 +0200 Received: from 194.66.250.93 ([194.66.250.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Oct 2011 14:11:33 +0200 Received: from rasmus by 194.66.250.93 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Oct 2011 14:11:33 +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 Torsten Wagner writes: > alternatively (a trick Eric is never tired to mention to me ) you > could > add a little lisp block which change all kind of language related > aspects for you. This could include many more options and modify your > emacs environment just to your personal needs for a certain language. > > Make one for python2 and one for python3 and execute them dependent on > which system you are going to use. > > Without testing and without guarantee it should be something like the > below code. To demonstrate some more functionality lets change the > modebar background colour to make it more visible which python mode > you > are currently using. > #+srcname: python2_env > #+begin_src emacs-lisp > (setq org-babel-python-command "python") > (set-face-background 'modeline "#4477aa") > #+end_src > #+srcname: python3_env > #+begin_src emacs-lisp > (setq org-babel-python-command "python3") > (set-face-background 'modeline "#771944") > #+end_src That is pure awesomeness! Thanks, Rasmus -- Sent from my Emacs