Assuming the Emacs interface for SICStus Prolog has been installed in the default location, inserting a single line in your ~/.emacs will make Emacs use the SICStus Prolog mode automatically when editing files with a ‘.pro’ or ‘.pl’ extension. It will also ensure Emacs can find the SICStus executables and on-line documentation, etc.
Note to Windows users: ~/.emacs denotes a file .emacs in whatever Emacs considers to be your home directory. See ‘GNU Emacs FAQ For MS Windows’ at http://www.gnu.org/software/emacs/windows/ntemacs.html for details.
Under UNIX, assuming SICStus 4.3.3 was installed in /usr/local/sicstus4.3.3/, add the following line:
Under Windows, assuming SICStus 4.3.3 was installed in C:\Program Files\SICStus Prolog VC14 4.3.3\, add the following line:
(load "C:/Program Files/SICStus Prolog VC14 4.3.3/emacs/sicstus_emacs_init")
No other configuration should be needed to get started. If you want to customize things, look in the sictus_emacs_init.el file and the rest of this section.