From: Syver E. <syv...@on...> - 2002-01-23 23:46:31
|
Jon K Hellan <he...@ac...> writes: > Here's what I do: > > (add-hook > 'python-mode-hook > (lambda () > (let ((using-jython > (save-excursion > (goto-char (point-min)) > (looking-at "#!.*\\(java\\|jp?ython\\)")))) > (py-toggle-shells (if using-jython 'jpython 'cpython))))) > > > This looks at the #! line at the top of the script and selects the > appropriate interpreter. Cool, that should be in python-mode.el I suppose. Unfortunately I can't use that trick as I don't use unix. -- Vennlig hilsen Syver Enstad |