From: Olive <diolu.remove_this_part@bigfoot.com>
To: help-gnu-emacs@gnu.org
Subject: Automatically enable python mode
Date: Thu, 18 Oct 2012 14:32:42 +0200 [thread overview]
Message-ID: <20121018143242.37910206@pcolivier.chezmoi.net> (raw)
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
next reply other threads:[~2012-10-18 12:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 12:32 Olive [this message]
2012-10-18 13:37 ` Automatically enable python mode Doug Lewan
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121018143242.37910206@pcolivier.chezmoi.net \
--to=diolu.remove_this_part@bigfoot.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.