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 ‘