Use auto-mode-alist
. Something like this in your configuration should do the trick:
(add-to-list 'auto-mode-alist
'("\\.psp\\'" . python-mode))
Pergunta
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.
Solução
Use auto-mode-alist
. Something like this in your configuration should do the trick:
(add-to-list 'auto-mode-alist
'("\\.psp\\'" . python-mode))