emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Wish: babel for python3
Date: Tue, 18 Oct 2011 13:13:39 +0100	[thread overview]
Message-ID: <87zkgyo5u4.fsf@gmail.com> (raw)
In-Reply-To: 4E9D3F39.6020703@gmail.com

Torsten Wagner <torsten.wagner@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	other threads:[~2011-10-18 12:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 14:42 Wish: babel for python3 Arne Babenhauserheide
2011-10-15 18:36 ` Eric Schulte
2011-10-15 18:52   ` Arne Babenhauserheide
2011-10-15 20:09     ` Thomas S. Dye
2011-10-15 20:29       ` Arne Babenhauserheide
2011-10-18  8:56         ` Torsten Wagner
2011-10-18 12:13           ` Rasmus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zkgyo5u4.fsf@gmail.com \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).