I downloaded SWI Prolog today, but I'm having trouble getting emacs to recognize my prolog files. I save my prolog files with the extension .pl , however, he continues to think that these are perl files. In my home directory, I have my ./.emacs file , and I have my prolog.el file. Also at the end of my ./.emacs file ./.emacs I added the following:
(autoload 'run-prolog "prolog" "Start a Prolog sub-process." t) (autoload 'prolog-mode "prolog" "Major mode for editing Prolog programs." t) (autoload 'mercury-mode "prolog" "Major mode for editing Mercury programs." t) (setq prolog-system 'swi) (setq auto-mode-alist (append '(("\\.pl$" . prolog-mode) ("\\.m$" . mercury-mode)) auto-mode-alist)
I am using this sample .emacs file: Example Emacs File
Why doesn't emacs recognize my prolog? I'm not so experienced with emacs, so all help is much appreciated!
source share