From: Danny Yoo <dyoo@...>
> I'd like to submit an entry to the Jython FAQ:
> "How do I get emacs's python-mode to use Jython as its interpreter?"
> python-mode.el assumes that it's working with 'jpython', not 'jython', so
> we need to make a small variable change to make it use the correct
> We can add the following to .emacs:
> (setq py-jpython-command "jython")
> Once this setting is in effect, we can switch between CPython and JPython
> mode by pressing C-c C-t.
You can also put a "#!/usr/local/bin/jython"
as the first line in the file, with recent python-mode.el versions.
We should probably ask Barry to change the default jpython command to "jython"
instead of "jpython"... I've submitted a simple patch to SourceForge that
implements the change.