A step-by-step instruction for installing package PAC. Kuniaki Mukai (kuniaki.mukai@gmail.com) 1. This memo assumes following environment is prepared. The PAC version is v1.1.9 or later. It works on Mac OS 10.12 (Sierra) Gnu Emacs 26.0 or later SWI-Prolog 7.5.6 or later 2. Install the PAC package. ?- pack_remove(pac). ?- pack_install('http://web.sfc.keio.ac.jp/~mukai/pac-1.1.9.tgz'). ?- use_module(library(pac)). ?- call(pred([hello]), X). X = hello . 3. The package is installed at ~/lib/swipl/pack/pac, by default. Check the files installed: pac-config.pl prolog/pac.pl prolog/pac/start-pac.pl prolog/pac/start-eh.pl prolog/pac/start-cgi.pl elisp/prolog-process.el shell/dump-pac shell/dump-eh shell/dump-cgi document/setup-pac-emacs javascript/http_request.jp 4 Edit a config file. Copy the template file pac-config.pl to ~/.pac-config.pl, and customize it if necessary. 5. Insert the following line into your init.el file for Emacs (load "~/lib/swipl/pack/pac/elisp/prolog-process.el") 6. Run shell scripts to compile PAC library depending on purposes. % ~/lib/swipl/pack/pac/shell/dump-eh % ~/lib/swipl/pack/pac/shell/dump-pac % ~/lib/swipl/pack/pac/shell/dump-cgi 7. Restart Emacs.app or open terminal.app then run the command: % emacs -q -l ${HOME}/lib/swipl/pack/pac/elisp/prolog-process.el & 8. visit a temporary buffer, for example, *scratch* . 9. type "s-p" (command + p ) to restore the emacshandler. 10. type Control-l ("C-l") 11. type "help" without quotes in the minibuffer. 12. A list of lists of atoms is displayed on the buffer, which means the installation is successful. The list shows the available handle rules. 13. If successul so far, and you are interested to go ahead, please have a look at the following memos. document/pac-install-demo (this memo) document/setup-pac-emacs (new) document/example-pac-emacs (old) document/pac-query-samples.pl (old) document/read-codes (old) document/sample-queries.pl (old) document/pac-syntax.txt (old)