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

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))
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.