unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Automatically enable python mode
@ 2012-10-18 12:32 Olive
  2012-10-18 13:37 ` Doug Lewan
  0 siblings, 1 reply; 2+ messages in thread
From: Olive @ 2012-10-18 12:32 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-18 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-18 12:32 Automatically enable python mode Olive
2012-10-18 13:37 ` Doug Lewan

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).