Emacs question

William Annis annis at biostat.wisc.edu
Thu Jan 13 11:52:33 EST 2000


"Fredrik Lundh" <fredrik at pythonware.com> writes:

> # -*-python-*-
> 
> or
> 
> #  -*- Mode: Python; tab-width: 4 -*-

        Those all work, but as I recall those work only on the first
line of the file.  A quick test seems to confirm this.

        I use this in my .emacs, which looks for the word "python" in
the shebang line:

------------------------------
(setq interpreter-mode-alist
      (cons '("python" . python-mode) interpreter-mode-alist))
------------------------------

-- 
William Annis - System Administrator - Biomedical Computing Group
annis at biostat.wisc.edu                       PGP ID:1024/FBF64031
Mi parolas Esperanton - La Internacia Lingvo    www.esperanto.org



More information about the Python-list mailing list