![]() |
|
|
+ Search |
![]()
|
Jun 23rd, 2000 23:49
unknown unknown, Piet van Oostrum
You do this in the standard emacs way:
(setq auto-mode-alist
(cons '("\\.pyw?$" . python-mode) auto-mode-alist))
or
(add-to-list 'auto-mode-alist '("\\.pyw?$" . python-mode))
It is also useful (at least on Unix) to have
(add-to-list 'interpreter-mode-alist '("python" . python-mode))