Search code examples
emacsconfigurationwindows-8swi-prologemacs24

Cannot edit "Prolog Program Name" on SWI-Prolog with GNU-Emacs (trying to setup inferior Prolog process)


I am on Windows 8, I like Emacs and wish to use it for Prolog programming. I am trying to set up an inferior Prolog process from which to query Prolog programs.

I am following this installation. I have successfully followed steps 1 (saved on C:\Users\Username\Emacs-24.3\site-lisp), 2, 3, and some of 4. But I cannot

Go to "Prolog Inferior" group and edit "Prolog Program Name", to insert SWI Prolog's command pathname as there is no edit option to be found.

My question:

  • how to edit prolog-program-name, or
  • how to insert SWI Prolog's command pathname, or
  • how to set up an inferior Prolog process on emacs ?

Thank you!


Solution

  • If swipl is in your $PATH, you don't need any customization at all. But otherwise, just use the built-in prolog-mode and add something like (setq prolog-program-name "c:/Users/Username/SWI-Prolog/swipl"). Note the use of forward slashes instead of backslashes.