When in Prolog mode, emacs can do that with C-c C-f. You do this by consulting the file. Sign up using Facebook. However, I am not sure how to get the prolog. There are three moments at which PceEmacs checks part of the syntax.
CSE Running Prolog
There is an excellent Prolog mode for GNU Emacs and XEmacs. It is maintained by Add the following lines to ~/.emacs (~/_emacs on Windows): (autoload. Bluffing through PceEmacs. PceEmacs closely mimics Richard Stallman's GNU-Emacs commands, adding features from modern window-based editors to.
This document gets you started using SWI-Prolog on MS-Windows.
. Other options for editing include GNU-Emacs, SWI-Prolog-Editor and the Eclipse-based .
However, I have researched and found it is feature less, i.
There are various ways to make PceEmacs use Prolog mode for a file. Some frequently used commands are, with their key-binding, presented in the menu bar above each editor window.
You should be rewarded by the appearance of a new window containing some welcome messages and the Prolog prompt?
1 Running a Prolog program
I have loaded this library using M-X Load-library. PceEmacs closely mimics Richard Stallman's GNU-Emacs commands, adding features from modern window-based editors to make it more acceptable for beginners.
Use Save from the File menu or Ctrl-x Ctrl-s.
If you install pl.x86_ You can also use the SWI Prolog builtin editor called PceEmacs, see here: The SWI-Prolog builtin editor: PceEmacs.
By default the file is loaded into the current window.
SWI-Prolog knows about this, so you do not need to give the full filename and extension when consulting it. With some practice, this system allows for entering code very fast with nice and readable identifiers or other difficult long words. What you have to do is: to supply the full filename, including the.
To do this, use Control-x 2 to create a new window pointing to the same file.