emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Wish: babel for python3


From: Rasmus
Subject: Re: [O] Wish: babel for python3
Date: Tue, 18 Oct 2011 13:13:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

Torsten Wagner <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]