help-gnu-emacs
[Top][All Lists]
Advanced

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

Automatically enable python mode


From: Olive
Subject: Automatically enable python mode
Date: Thu, 18 Oct 2012 14:32:42 +0200

I am using arch GNU/Linux. If a file contains:

#! /usr/bin/python

as the first line, the python mode is automatically enabled. However,
due to the fact that python 2 and python 3 coexists, in order that
the correct python version is reliably involved, the first line must be

#! /usr/bin/python2
or
#! /usr/bin/python3

How can I tell emacs that it have to automatically enable python mode
when one of the two line is the first line?

Olive


reply via email to

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