Torsten Wagner <torsten.wag...@gmail.com> 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