Showterm: Display Prolog Terms
To try it, you need dot from Graphviz,
and convert from ImageMagick installed. In
addition, you need 2 files:
Copy both files in the same directory, open showterm.el
in Emacs, adjust the value of scryer-prolog-path if
necessary to point to the Scryer Prolog executable, and
evaluate the buffer with M-x eval-buffer RET.
The function showterm draws the Prolog term in the
region as a tree. You can invoke it
with M-x showterm RET, or bind it to a key. For example,
put the following in your ~/.emacs to
invoke showterm by pressing the function key F12:
(global-set-key [f12] 'showterm)
Screenshot:
More about Prolog: The Power of Prolog