Вопрос

I am using Emacs 24.3, and would like to have .psp (python server pages) files automatically be in python-mode when opened as opposed to the default Fundamental mode. Thanks.

Это было полезно?

Решение

Use auto-mode-alist. Something like this in your configuration should do the trick:

(add-to-list 'auto-mode-alist
             '("\\.psp\\'" . python-mode))
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top