Domanda

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.

È stato utile?

Soluzione

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

(add-to-list 'auto-mode-alist
             '("\\.psp\\'" . python-mode))
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top