Closed ToBeReplaced closed 10 years ago
In addition to python, we should add python2, python2.7, python3, python3.3 to interpreter-mode-alist.
python
python2
python2.7
python3
python3.3
interpreter-mode-alist
This would allow for a script to begin with:
#!/usr/bin/env python3
Or:
#!/usr/bin/env python2.7
This is useful when defining scripts without a .py extension that specify the python version through a shebang line.
.py
this has been addressed already in revno 114202 in the emacs-24 branch.
In addition to
python
, we should addpython2
,python2.7
,python3
,python3.3
tointerpreter-mode-alist
.This would allow for a script to begin with:
Or:
This is useful when defining scripts without a
.py
extension that specify the python version through a shebang line.