2

Is there any way to tell emacs that it should recognize files which ends with .pl as Prolog files?

When I currently load a .pl file into emacs it activates the perl-mode. I read some emacs manual pages but I don't really understand what to do.

1 Answer 1

1

Emacs comes pre-configured to understabd .pl as perl not prolog. To fix that add this to your .emacs configuration file founded in your home directory to change the configuration permanently:

(add-to-list 'auto-mode-alist '("\\.\\(pl\\|pro\\|lgt\\)" . prolog-mode))

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .